aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteFramework.cs
diff options
context:
space:
mode:
authorDiva Canto2010-02-20 17:52:38 -0800
committerDiva Canto2010-02-20 17:52:38 -0800
commit0ab6aac05255078a9d190f6623b2d86d5253d955 (patch)
tree311cb082d2a7f41496ae000562b38bdb2b7111d5 /OpenSim/Data/SQLite/SQLiteFramework.cs
parent* Added a sanity check for missing asset data in LLClientView (diff)
downloadopensim-SC_OLD-0ab6aac05255078a9d190f6623b2d86d5253d955.zip
opensim-SC_OLD-0ab6aac05255078a9d190f6623b2d86d5253d955.tar.gz
opensim-SC_OLD-0ab6aac05255078a9d190f6623b2d86d5253d955.tar.bz2
opensim-SC_OLD-0ab6aac05255078a9d190f6623b2d86d5253d955.tar.xz
Added UserAccountData and auth to the SQLite connector. Compiles, runs, but access to these tables doesn't work.
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteFramework.cs')
-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 //////////////////////////////////////////////////////////////