From 62fcfe89248ad0e5a2e73597a1cc72a4d4ef197a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 31 Mar 2009 11:32:30 +0000 Subject: Thank you, StrawberryFride, for a patch that adds offline inventory functionality to the MSSQL module. Fixes Mantis #3370 --- OpenSim/Data/MSSQL/MSSQLInventoryData.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'OpenSim/Data') 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 } } + sql = "UPDATE inventoryfolders SET version = version + 1 WHERE folderID = @folderID"; + using (AutoClosingSqlCommand command = database.Query(sql)) + { + command.Parameters.Add(database.CreateParameter("folderID", item.Folder.ToString())); + try + { + command.ExecuteNonQuery(); + } + catch (Exception e) + { + m_log.Error("[INVENTORY DB] Error updating inventory folder for new item :" + e.Message); + } + } } /// @@ -532,12 +545,12 @@ namespace OpenSim.Data.MSSQL public InventoryItemBase queryInventoryItem(UUID itemID) { - return null; + return getInventoryItem(itemID); } public InventoryFolderBase queryInventoryFolder(UUID folderID) { - return null; + return getInventoryFolder(folderID); } /// -- cgit v1.1