diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs index 0a43499..a94f5c2 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | |||
@@ -271,12 +271,12 @@ 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 = (SqliteCommand)conn.CreateCommand()) | 274 | using (IDbCommand cmd = conn.CreateCommand()) |
275 | { | 275 | { |
276 | cmd.CommandText = sql; | 276 | cmd.CommandText = sql; |
277 | cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString())); | 277 | cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString())); |
278 | 278 | ||
279 | using (SqliteDataReader row = cmd.ExecuteReader()) | 279 | using (IDataReader row = cmd.ExecuteReader()) |
280 | { | 280 | { |
281 | int rev = 0; | 281 | int rev = 0; |
282 | if (row.Read()) | 282 | if (row.Read()) |