mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
more attempted voodoo around .NET
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user