From 980661ed1bb55a8aa90af89ea9adeae32153d4f8 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 14 Nov 2007 15:03:17 +0000 Subject: more attempted voodoo around .NET --- .../Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenSim') 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 String sql = "select RegionUUID, Revision, Heightfield from terrain" + " where RegionUUID=:RegionUUID order by Revision desc limit 1"; - using (SqliteCommand cmd = new SqliteCommand(sql)) + using (SqliteCommand cmd = (SqliteCommand)conn.CreateCommand()) { - cmd.Connection = conn; - SqliteParameter param = new SqliteParameter(); + cmd.CommandText = sql; cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString())); using (SqliteDataReader row = cmd.ExecuteReader()) -- cgit v1.1