aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs
diff options
context:
space:
mode:
authorTleiades Hax2007-10-13 09:21:08 +0000
committerTleiades Hax2007-10-13 09:21:08 +0000
commitf6aeff6cc3f6ebc58db702206d469718d19b7ba0 (patch)
tree468fb8483a2cd03e472a6988ef60f1c8ff01c07e /OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs
parent(no commit message) (diff)
downloadopensim-SC-f6aeff6cc3f6ebc58db702206d469718d19b7ba0.zip
opensim-SC-f6aeff6cc3f6ebc58db702206d469718d19b7ba0.tar.gz
opensim-SC-f6aeff6cc3f6ebc58db702206d469718d19b7ba0.tar.bz2
opensim-SC-f6aeff6cc3f6ebc58db702206d469718d19b7ba0.tar.xz
Added capbility to use MySQL as the database backend in stand alone mode for assets and inventory.
Added asset_plugin key to "StandAlone" section of OpenSim.ini
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs b/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs
index 7bd1273..6423f28 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs
@@ -225,13 +225,10 @@ namespace OpenSim.Framework.Data.MySQL
225 MySqlDataReader reader = result.ExecuteReader(); 225 MySqlDataReader reader = result.ExecuteReader();
226 226
227 List<InventoryFolderBase> items = new List<InventoryFolderBase>(); 227 List<InventoryFolderBase> items = new List<InventoryFolderBase>();
228 while (reader.Read()) 228 while(reader.Read())
229 items.Add(readInventoryFolder(reader)); 229 items.Add(readInventoryFolder(reader));
230 230
231 InventoryFolderBase rootFolder = null; 231 InventoryFolderBase rootFolder = items[0]; //should only be one folder with parent set to zero (the root one).
232 if (items.Count > 0)
233 rootFolder = items[0]; //should only be one folder with parent set to zero (the root one).
234
235 reader.Close(); 232 reader.Close();
236 result.Dispose(); 233 result.Dispose();
237 234