aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
diff options
context:
space:
mode:
authorMelanie Thielker2009-03-31 11:32:30 +0000
committerMelanie Thielker2009-03-31 11:32:30 +0000
commit62fcfe89248ad0e5a2e73597a1cc72a4d4ef197a (patch)
tree442b58353b3cc8bd0859bb84077b74bb932fd896 /OpenSim/Data/MSSQL/MSSQLInventoryData.cs
parent* Refactored out and de-duplicated Base64ToString(string) (diff)
downloadopensim-SC_OLD-62fcfe89248ad0e5a2e73597a1cc72a4d4ef197a.zip
opensim-SC_OLD-62fcfe89248ad0e5a2e73597a1cc72a4d4ef197a.tar.gz
opensim-SC_OLD-62fcfe89248ad0e5a2e73597a1cc72a4d4ef197a.tar.bz2
opensim-SC_OLD-62fcfe89248ad0e5a2e73597a1cc72a4d4ef197a.tar.xz
Thank you, StrawberryFride, for a patch that adds offline inventory
functionality to the MSSQL module. Fixes Mantis #3370
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLInventoryData.cs')
-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>