From 8eb2a163c8d9b10477cf1bc57ac7ab6c0c75a112 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 14 Nov 2007 16:26:18 +0000 Subject: random shot in the dark --- .../Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Storage') diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs index 60bef13..18be64a 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs @@ -49,8 +49,8 @@ namespace OpenSim.DataStore.MonoSqlite private DataSet ds; private SqliteDataAdapter primDa; private SqliteDataAdapter shapeDa; - private SqliteConnection conn; private SqliteDataAdapter terrainDa; + private String connectionString; /*********************************************************************** * @@ -60,12 +60,12 @@ namespace OpenSim.DataStore.MonoSqlite public void Initialise(string dbfile, string dbname) { - string connectionString = "URI=file:" + dbfile + ",version=3"; + connectionString = "URI=file:" + dbfile + ",version=3"; ds = new DataSet(); MainLog.Instance.Verbose("DATASTORE", "Sqlite - connecting: " + dbfile); - conn = new SqliteConnection(connectionString); + SqliteConnection conn = new SqliteConnection(connectionString); SqliteCommand primSelectCmd = new SqliteCommand(primSelect, conn); primDa = new SqliteDataAdapter(primSelectCmd); @@ -266,6 +266,7 @@ namespace OpenSim.DataStore.MonoSqlite public double[,] LoadTerrain(LLUUID regionID) { + SqliteConnection conn = new SqliteConnection(connectionString); double[,] terret = new double[256,256]; terret.Initialize(); String sql = "select RegionUUID, Revision, Heightfield from terrain" + -- cgit v1.1