From 2aec70666ab5260a4f6a56c21bba03bc95054276 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 14 Nov 2007 15:15:01 +0000 Subject: no, this probably won't work either, but I'm going to at least make sure it works mono still --- .../Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 4 ++-- 1 file 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 String sql = "select RegionUUID, Revision, Heightfield from terrain" + " where RegionUUID=:RegionUUID order by Revision desc limit 1"; - using (SqliteCommand cmd = (SqliteCommand)conn.CreateCommand()) + using (IDbCommand cmd = conn.CreateCommand()) { cmd.CommandText = sql; cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString())); - using (SqliteDataReader row = cmd.ExecuteReader()) + using (IDataReader row = cmd.ExecuteReader()) { int rev = 0; if (row.Read()) -- cgit v1.1