diff options
author | Sean Dague | 2007-11-14 15:03:17 +0000 |
---|---|---|
committer | Sean Dague | 2007-11-14 15:03:17 +0000 |
commit | 980661ed1bb55a8aa90af89ea9adeae32153d4f8 (patch) | |
tree | 63d87ac98df22170a1564a716bc0c82a9ee3a251 /OpenSim | |
parent | attempt to resolve Sqlite not working on .NET for terrain (diff) | |
download | opensim-SC_OLD-980661ed1bb55a8aa90af89ea9adeae32153d4f8.zip opensim-SC_OLD-980661ed1bb55a8aa90af89ea9adeae32153d4f8.tar.gz opensim-SC_OLD-980661ed1bb55a8aa90af89ea9adeae32153d4f8.tar.bz2 opensim-SC_OLD-980661ed1bb55a8aa90af89ea9adeae32153d4f8.tar.xz |
more attempted voodoo around .NET
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 5 |
1 files changed, 2 insertions, 3 deletions
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 | |||
271 | String sql = "select RegionUUID, Revision, Heightfield from terrain" + | 271 | String sql = "select RegionUUID, Revision, Heightfield from terrain" + |
272 | " where RegionUUID=:RegionUUID order by Revision desc limit 1"; | 272 | " where RegionUUID=:RegionUUID order by Revision desc limit 1"; |
273 | 273 | ||
274 | using (SqliteCommand cmd = new SqliteCommand(sql)) | 274 | using (SqliteCommand cmd = (SqliteCommand)conn.CreateCommand()) |
275 | { | 275 | { |
276 | cmd.Connection = conn; | 276 | cmd.CommandText = sql; |
277 | SqliteParameter param = new SqliteParameter(); | ||
278 | cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString())); | 277 | cmd.Parameters.Add(new SqliteParameter(":RegionUUID", regionID.ToString())); |
279 | 278 | ||
280 | using (SqliteDataReader row = cmd.ExecuteReader()) | 279 | using (SqliteDataReader row = cmd.ExecuteReader()) |