aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/SQLite/SQLiteInventoryStore.cs16
1 files changed, 6 insertions, 10 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
index 442ba39..2eb0ad5 100644
--- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
@@ -50,17 +50,13 @@ namespace OpenSim.Data.SQLite
50 /// <summary> 50 /// <summary>
51 /// Initialises the interface 51 /// Initialises the interface
52 /// </summary> 52 /// </summary>
53 public void Initialise() 53 public void Initialise(string dbconnect)
54 { 54 {
55 Initialise("inventoryStore.db", "inventoryDatabase"); 55 if (dbconnect == string.Empty) {
56 } 56 dbconnect = "URI=file:inventoryStore.db,version=3";
57 57 }
58 public void Initialise(string dbfile, string dbname) 58 m_log.Info("[Inventory]: Sqlite - connecting: " + dbconnect);
59 { 59 SqliteConnection conn = new SqliteConnection(dbconnect);
60 string connectionString = "URI=file:" + dbfile + ",version=3";
61
62 m_log.Info("[Inventory]: Sqlite - connecting: " + dbfile);
63 SqliteConnection conn = new SqliteConnection(connectionString);
64 60
65 conn.Open(); 61 conn.Open();
66 62