more attempted voodoo around .NET

afrisby
Sean Dague 2007-11-14 15:03:17 +00:00
parent 5a739cc248
commit 980661ed1b
1 changed files with 2 additions and 3 deletions

View File

@ -271,10 +271,9 @@ namespace OpenSim.DataStore.MonoSqlite
String sql = "select RegionUUID, Revision, Heightfield from terrain" + String sql = "select RegionUUID, Revision, Heightfield from terrain" +
" where RegionUUID=:RegionUUID order by Revision desc limit 1"; " where RegionUUID=:RegionUUID order by Revision desc limit 1";
using (SqliteCommand cmd = new SqliteCommand(sql)) using (SqliteCommand cmd = (SqliteCommand)conn.CreateCommand())
{ {
cmd.Connection = conn; cmd.CommandText = sql;
SqliteParameter param = new SqliteParameter();
cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString())); cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString()));
using (SqliteDataReader row = cmd.ExecuteReader()) using (SqliteDataReader row = cmd.ExecuteReader())