From 9b82b52096fd1b44aa80e4c6d673d1646b616052 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 22 Mar 2009 16:12:48 +0000 Subject: MYSQL Only: Make items given while offline appear in inventory without the need to clear cache. --- OpenSim/Data/MySQL/MySQLInventoryData.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs index 1a6f068..2f26cdf 100644 --- a/OpenSim/Data/MySQL/MySQLInventoryData.cs +++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs @@ -497,6 +497,15 @@ namespace OpenSim.Data.MySQL } result.Dispose(); + + result = new MySqlCommand("update inventoryfolders set version=version+1 where folderID = ?folderID", database.Connection); + result.Parameters.AddWithValue("?folderID", item.Folder.ToString +()); + lock (database) + { + result.ExecuteNonQuery(); + } + result.Dispose(); } catch (MySqlException e) { -- cgit v1.1