diff --git a/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs b/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs index 7dab6bf011..d71c7eb0fc 100644 --- a/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs +++ b/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs @@ -57,8 +57,8 @@ namespace OpenSim.Data.SQLite using (SqliteConnection dbcon = new SqliteConnection(m_connectionString)) { - dbcon.Open(); - Migration m = new Migration(dbcon, GetType().Assembly, "AuthStore"); + //dbcon.Open(); + Migration m = new Migration(m_Connection, GetType().Assembly, "AuthStore"); m.Update(); } @@ -149,8 +149,9 @@ namespace OpenSim.Data.SQLite return false; } } - catch + catch (Exception e) { + Console.WriteLine(e.ToString()); cmd.Dispose(); return false; } @@ -174,8 +175,9 @@ namespace OpenSim.Data.SQLite return false; } } - catch + catch (Exception e) { + Console.WriteLine(e.ToString()); cmd.Dispose(); return false; } diff --git a/OpenSim/Data/SQLite/SQLiteFramework.cs b/OpenSim/Data/SQLite/SQLiteFramework.cs index 96764f3c90..54b104ba88 100644 --- a/OpenSim/Data/SQLite/SQLiteFramework.cs +++ b/OpenSim/Data/SQLite/SQLiteFramework.cs @@ -42,6 +42,7 @@ namespace OpenSim.Data.SQLite { protected Object m_lockObject = new Object(); + protected static SqliteConnection m_Connection; protected SQLiteFramework(string connectionString) { }