diff options
Diffstat (limited to 'OpenSim/Region/Storage')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs index f85d3b6..45b19e6 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | |||
@@ -1,7 +1,6 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using System.IO; | ||
5 | 4 | ||
6 | using OpenSim.Region.Environment.Scenes; | 5 | using OpenSim.Region.Environment.Scenes; |
7 | using OpenSim.Region.Environment.LandManagement; | 6 | using OpenSim.Region.Environment.LandManagement; |
@@ -31,9 +30,10 @@ namespace OpenSim.DataStore.MonoSqliteStorage | |||
31 | 30 | ||
32 | public void Initialise(string dbfile, string dbname) | 31 | public void Initialise(string dbfile, string dbname) |
33 | { | 32 | { |
34 | // for us, dbfile will be the connect string | 33 | string connectionString = "URI=file:" + dbfile + ",version=3"; |
34 | |||
35 | MainLog.Instance.Verbose("DATASTORE", "Sqlite - connecting: " + dbfile); | 35 | MainLog.Instance.Verbose("DATASTORE", "Sqlite - connecting: " + dbfile); |
36 | SqliteConnection conn = new SqliteConnection(dbfile); | 36 | SqliteConnection conn = new SqliteConnection(connectionString); |
37 | 37 | ||
38 | SqliteCommand primSelectCmd = new SqliteCommand(primSelect, conn); | 38 | SqliteCommand primSelectCmd = new SqliteCommand(primSelect, conn); |
39 | primDa = new SqliteDataAdapter(primSelectCmd); | 39 | primDa = new SqliteDataAdapter(primSelectCmd); |
@@ -301,6 +301,7 @@ namespace OpenSim.DataStore.MonoSqliteStorage | |||
301 | Convert.ToSingle(row["RotationZ"]), | 301 | Convert.ToSingle(row["RotationZ"]), |
302 | Convert.ToSingle(row["RotationW"]) | 302 | Convert.ToSingle(row["RotationW"]) |
303 | ); | 303 | ); |
304 | |||
304 | return prim; | 305 | return prim; |
305 | } | 306 | } |
306 | 307 | ||