aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Storage
diff options
context:
space:
mode:
authorSean Dague2007-11-14 15:03:17 +0000
committerSean Dague2007-11-14 15:03:17 +0000
commit980661ed1bb55a8aa90af89ea9adeae32153d4f8 (patch)
tree63d87ac98df22170a1564a716bc0c82a9ee3a251 /OpenSim/Region/Storage
parentattempt to resolve Sqlite not working on .NET for terrain (diff)
downloadopensim-SC-980661ed1bb55a8aa90af89ea9adeae32153d4f8.zip
opensim-SC-980661ed1bb55a8aa90af89ea9adeae32153d4f8.tar.gz
opensim-SC-980661ed1bb55a8aa90af89ea9adeae32153d4f8.tar.bz2
opensim-SC-980661ed1bb55a8aa90af89ea9adeae32153d4f8.tar.xz
more attempted voodoo around .NET
Diffstat (limited to 'OpenSim/Region/Storage')
-rw-r--r--OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
index 5e39bee..0a43499 100644
--- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
+++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
@@ -271,10 +271,9 @@ namespace OpenSim.DataStore.MonoSqlite
271 String sql = "select RegionUUID, Revision, Heightfield from terrain" + 271 String sql = "select RegionUUID, Revision, Heightfield from terrain" +
272 " where RegionUUID=:RegionUUID order by Revision desc limit 1"; 272 " where RegionUUID=:RegionUUID order by Revision desc limit 1";
273 273
274 using (SqliteCommand cmd = new SqliteCommand(sql)) 274 using (SqliteCommand cmd = (SqliteCommand)conn.CreateCommand())
275 { 275 {
276 cmd.Connection = conn; 276 cmd.CommandText = sql;
277 SqliteParameter param = new SqliteParameter();
278 cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString())); 277 cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString()));
279 278
280 using (SqliteDataReader row = cmd.ExecuteReader()) 279 using (SqliteDataReader row = cmd.ExecuteReader())