diff options
author | Adam Frisby | 2009-08-18 00:23:27 +1000 |
---|---|---|
committer | Adam Frisby | 2009-08-18 00:23:27 +1000 |
commit | 58d9d6026eb36d530c7cec753279b7aeaa6b43eb (patch) | |
tree | 86a09687ef01b308ac2ae8e1023ec9ddb943c54f /OpenSim/Data/SQLite/SQLiteInventoryStore.cs | |
parent | * Implementing a bunch of Unimplemented MRM stubs. (diff) | |
parent | Add System.Xml reference to the console project (diff) | |
download | opensim-SC-58d9d6026eb36d530c7cec753279b7aeaa6b43eb.zip opensim-SC-58d9d6026eb36d530c7cec753279b7aeaa6b43eb.tar.gz opensim-SC-58d9d6026eb36d530c7cec753279b7aeaa6b43eb.tar.bz2 opensim-SC-58d9d6026eb36d530c7cec753279b7aeaa6b43eb.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteInventoryStore.cs')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteInventoryStore.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs index 97c40ba..e5f7a50 100644 --- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs | |||
@@ -301,7 +301,8 @@ namespace OpenSim.Data.SQLite | |||
301 | DataTable inventoryFolderTable = ds.Tables["inventoryfolders"]; | 301 | DataTable inventoryFolderTable = ds.Tables["inventoryfolders"]; |
302 | 302 | ||
303 | inventoryRow = inventoryFolderTable.Rows.Find(item.Folder.ToString()); | 303 | inventoryRow = inventoryFolderTable.Rows.Find(item.Folder.ToString()); |
304 | inventoryRow["version"] = (int)inventoryRow["version"] + 1; | 304 | if (inventoryRow != null) //MySQL doesn't throw an exception here, so sqlite shouldn't either. |
305 | inventoryRow["version"] = (int)inventoryRow["version"] + 1; | ||
305 | 306 | ||
306 | invFoldersDa.Update(ds, "inventoryfolders"); | 307 | invFoldersDa.Update(ds, "inventoryfolders"); |
307 | } | 308 | } |