aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite')
-rw-r--r--OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
index 7d96e55..f2db41c 100644
--- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
+++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
@@ -269,15 +269,15 @@ namespace OpenSim.DataStore.MonoSqlite
269 double[,] terret = new double[256,256]; 269 double[,] terret = new double[256,256];
270 terret.Initialize(); 270 terret.Initialize();
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='" + regionID.ToString() + "' order by Revision desc limit 1";
273 273
274 using (IDbCommand cmd = conn.CreateCommand()) 274 using (IDbCommand cmd = conn.CreateCommand())
275 { 275 {
276 cmd.CommandText = sql; 276 cmd.CommandText = sql;
277 SqliteParameter param = new SqliteParameter(":RegionUUID", regionID.ToString()); 277 // SqliteParameter param = new SqliteParameter(":RegionUUID", regionID.ToString());
278 param.SourceColumn = "RegionUUID"; 278// param.SourceColumn = "RegionUUID";
279 param.SourceVersion = DataRowVersion.Current; 279// param.SourceVersion = DataRowVersion.Current;
280 cmd.Parameters.Add(param); 280// cmd.Parameters.Add(param);
281 281
282 using (IDataReader row = cmd.ExecuteReader()) 282 using (IDataReader row = cmd.ExecuteReader())
283 { 283 {