mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
* fixed pk_violation on rename for MSSQLInventoryData
("le fix le plus ugly for le problem trés dumb")
This commit is contained in:
@@ -424,6 +424,12 @@ namespace OpenSim.Framework.Data.MSSQL
|
||||
/// <param name="item">The inventory item</param>
|
||||
public void addInventoryItem(InventoryItemBase item)
|
||||
{
|
||||
if (getInventoryItem(item.inventoryID) != null)
|
||||
{
|
||||
updateInventoryItem(item);
|
||||
return;
|
||||
}
|
||||
|
||||
string sql = "INSERT INTO inventoryitems";
|
||||
sql +=
|
||||
"([inventoryID], [assetID], [assetType], [parentFolderID], [avatarID], [inventoryName], [inventoryDescription], [inventoryNextPermissions], [inventoryCurrentPermissions], [invType], [creatorID], [inventoryBasePermissions], [inventoryEveryOnePermissions]) VALUES ";
|
||||
|
||||
Reference in New Issue
Block a user