aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteFramework.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/SQLite/SQLiteFramework.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteFramework.cs b/OpenSim/Data/SQLite/SQLiteFramework.cs
index 12b2750..d745c92 100644
--- a/OpenSim/Data/SQLite/SQLiteFramework.cs
+++ b/OpenSim/Data/SQLite/SQLiteFramework.cs
@@ -40,12 +40,17 @@ namespace OpenSim.Data.SQLite
40 /// </summary> 40 /// </summary>
41 public class SQLiteFramework 41 public class SQLiteFramework
42 { 42 {
43 protected SqliteConnection m_Connection; 43 protected static SqliteConnection m_Connection;
44 private bool m_initialized;
44 45
45 protected SQLiteFramework(string connectionString) 46 protected SQLiteFramework(string connectionString)
46 { 47 {
47 m_Connection = new SqliteConnection(connectionString); 48 if (!m_initialized)
48 m_Connection.Open(); 49 {
50 m_Connection = new SqliteConnection(connectionString);
51 m_Connection.Open();
52 m_initialized = true;
53 }
49 } 54 }
50 55
51 ////////////////////////////////////////////////////////////// 56 //////////////////////////////////////////////////////////////