aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteGenericTableHandler.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/SQLiteGenericTableHandler.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/SQLiteGenericTableHandler.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs b/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs
index 8e91693..d29efa0 100644
--- a/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs
+++ b/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs
@@ -48,16 +48,23 @@ namespace OpenSim.Data.SQLite
48 protected string m_Realm; 48 protected string m_Realm;
49 protected FieldInfo m_DataField = null; 49 protected FieldInfo m_DataField = null;
50 50
51 private static bool m_initialized;
52
51 public SQLiteGenericTableHandler(string connectionString, 53 public SQLiteGenericTableHandler(string connectionString,
52 string realm, string storeName) : base(connectionString) 54 string realm, string storeName) : base(connectionString)
53 { 55 {
54 m_Realm = realm; 56 m_Realm = realm;
55 if (storeName != String.Empty) 57
58 if (!m_initialized)
56 { 59 {
57 Assembly assem = GetType().Assembly; 60 if (storeName != String.Empty)
61 {
62 Assembly assem = GetType().Assembly;
58 63
59 Migration m = new Migration(m_Connection, assem, storeName); 64 Migration m = new Migration(m_Connection, assem, storeName);
60 m.Update(); 65 m.Update();
66 }
67 m_initialized = true;
61 } 68 }
62 69
63 Type t = typeof(T); 70 Type t = typeof(T);