no, this probably won't work either, but I'm going to at least make sure it works

mono still
afrisby
Sean Dague 2007-11-14 15:15:01 +00:00
parent 980661ed1b
commit 2aec70666a
1 changed files with 2 additions and 2 deletions

View File

@ -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())