more attempted voodoo around .NET
parent
5a739cc248
commit
980661ed1b
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue