diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs b/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs index 8e91693..918cb3d 100644 --- a/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs +++ b/OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs | |||
@@ -30,7 +30,7 @@ using System.Collections.Generic; | |||
30 | using System.Data; | 30 | using System.Data; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using log4net; | 32 | using log4net; |
33 | using Mono.Data.SqliteClient; | 33 | using Mono.Data.Sqlite; |
34 | using OpenMetaverse; | 34 | using OpenMetaverse; |
35 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
36 | using OpenSim.Region.Framework.Interfaces; | 36 | using OpenSim.Region.Framework.Interfaces; |
@@ -54,7 +54,27 @@ namespace OpenSim.Data.SQLite | |||
54 | m_Realm = realm; | 54 | m_Realm = realm; |
55 | if (storeName != String.Empty) | 55 | if (storeName != String.Empty) |
56 | { | 56 | { |
57 | <<<<<<< HEAD:OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs | ||
57 | Assembly assem = GetType().Assembly; | 58 | Assembly assem = GetType().Assembly; |
59 | ======= | ||
60 | m_Connection = new SqliteConnection(connectionString); | ||
61 | Console.WriteLine(string.Format("OPENING CONNECTION FOR {0} USING {1}", storeName, connectionString)); | ||
62 | m_Connection.Open(); | ||
63 | |||
64 | if (storeName != String.Empty) | ||
65 | { | ||
66 | Assembly assem = GetType().Assembly; | ||
67 | //SqliteConnection newConnection = | ||
68 | // (SqliteConnection)((ICloneable)m_Connection).Clone(); | ||
69 | //newConnection.Open(); | ||
70 | |||
71 | //Migration m = new Migration(newConnection, assem, storeName); | ||
72 | Migration m = new Migration(m_Connection, assem, storeName); | ||
73 | m.Update(); | ||
74 | //newConnection.Close(); | ||
75 | //newConnection.Dispose(); | ||
76 | } | ||
77 | >>>>>>> cc67de5... rename SQLiteNG to SQLite and SQLite to SQLiteLegacy:OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs | ||
58 | 78 | ||
59 | Migration m = new Migration(m_Connection, assem, storeName); | 79 | Migration m = new Migration(m_Connection, assem, storeName); |
60 | m.Update(); | 80 | m.Update(); |
@@ -180,7 +200,11 @@ namespace OpenSim.Data.SQLite | |||
180 | result.Add(row); | 200 | result.Add(row); |
181 | } | 201 | } |
182 | 202 | ||
203 | <<<<<<< HEAD:OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs | ||
183 | CloseReaderCommand(cmd); | 204 | CloseReaderCommand(cmd); |
205 | ======= | ||
206 | //CloseCommand(cmd); | ||
207 | >>>>>>> cc67de5... rename SQLiteNG to SQLite and SQLite to SQLiteLegacy:OpenSim/Data/SQLite/SQLiteGenericTableHandler.cs | ||
184 | 208 | ||
185 | return result.ToArray(); | 209 | return result.ToArray(); |
186 | } | 210 | } |