diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 5 |
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()) |