aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLInventoryData.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
index 1349f29..fe8287d 100644
--- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
@@ -445,6 +445,19 @@ namespace OpenSim.Data.MSSQL
445 } 445 }
446 } 446 }
447 447
448 sql = "UPDATE inventoryfolders SET version = version + 1 WHERE folderID = @folderID";
449 using (AutoClosingSqlCommand command = database.Query(sql))
450 {
451 command.Parameters.Add(database.CreateParameter("folderID", item.Folder.ToString()));
452 try
453 {
454 command.ExecuteNonQuery();
455 }
456 catch (Exception e)
457 {
458 m_log.Error("[INVENTORY DB] Error updating inventory folder for new item :" + e.Message);
459 }
460 }
448 } 461 }
449 462
450 /// <summary> 463 /// <summary>
@@ -532,12 +545,12 @@ namespace OpenSim.Data.MSSQL
532 545
533 public InventoryItemBase queryInventoryItem(UUID itemID) 546 public InventoryItemBase queryInventoryItem(UUID itemID)
534 { 547 {
535 return null; 548 return getInventoryItem(itemID);
536 } 549 }
537 550
538 public InventoryFolderBase queryInventoryFolder(UUID folderID) 551 public InventoryFolderBase queryInventoryFolder(UUID folderID)
539 { 552 {
540 return null; 553 return getInventoryFolder(folderID);
541 } 554 }
542 555
543 /// <summary> 556 /// <summary>