diff options
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteFramework.cs')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteFramework.cs | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteFramework.cs b/OpenSim/Data/SQLite/SQLiteFramework.cs index 12b2750..79eaab3 100644 --- a/OpenSim/Data/SQLite/SQLiteFramework.cs +++ b/OpenSim/Data/SQLite/SQLiteFramework.cs | |||
@@ -31,7 +31,7 @@ using System.Collections.Generic; | |||
31 | using System.Data; | 31 | using System.Data; |
32 | using OpenMetaverse; | 32 | using OpenMetaverse; |
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using Mono.Data.SqliteClient; | 34 | using Mono.Data.Sqlite; |
35 | 35 | ||
36 | namespace OpenSim.Data.SQLite | 36 | namespace OpenSim.Data.SQLite |
37 | { | 37 | { |
@@ -57,7 +57,19 @@ namespace OpenSim.Data.SQLite | |||
57 | { | 57 | { |
58 | lock (m_Connection) | 58 | lock (m_Connection) |
59 | { | 59 | { |
60 | <<<<<<< HEAD:OpenSim/Data/SQLite/SQLiteFramework.cs | ||
60 | cmd.Connection = m_Connection; | 61 | cmd.Connection = m_Connection; |
62 | ======= | ||
63 | /* | ||
64 | SqliteConnection newConnection = | ||
65 | (SqliteConnection)((ICloneable)connection).Clone(); | ||
66 | newConnection.Open(); | ||
67 | |||
68 | cmd.Connection = newConnection; | ||
69 | */ | ||
70 | cmd.Connection = connection; | ||
71 | //Console.WriteLine("XXX " + cmd.CommandText); | ||
72 | >>>>>>> cc67de5... rename SQLiteNG to SQLite and SQLite to SQLiteLegacy:OpenSim/Data/SQLite/SQLiteFramework.cs | ||
61 | 73 | ||
62 | return cmd.ExecuteNonQuery(); | 74 | return cmd.ExecuteNonQuery(); |
63 | } | 75 | } |
@@ -65,12 +77,27 @@ namespace OpenSim.Data.SQLite | |||
65 | 77 | ||
66 | protected IDataReader ExecuteReader(SqliteCommand cmd) | 78 | protected IDataReader ExecuteReader(SqliteCommand cmd) |
67 | { | 79 | { |
80 | <<<<<<< HEAD:OpenSim/Data/SQLite/SQLiteFramework.cs | ||
68 | SqliteConnection newConnection = | 81 | SqliteConnection newConnection = |
69 | (SqliteConnection)((ICloneable)m_Connection).Clone(); | 82 | (SqliteConnection)((ICloneable)m_Connection).Clone(); |
70 | newConnection.Open(); | 83 | newConnection.Open(); |
71 | 84 | ||
72 | cmd.Connection = newConnection; | 85 | cmd.Connection = newConnection; |
73 | return cmd.ExecuteReader(); | 86 | return cmd.ExecuteReader(); |
87 | ======= | ||
88 | lock (connection) | ||
89 | { | ||
90 | //SqliteConnection newConnection = | ||
91 | // (SqliteConnection)((ICloneable)connection).Clone(); | ||
92 | //newConnection.Open(); | ||
93 | |||
94 | //cmd.Connection = newConnection; | ||
95 | cmd.Connection = connection; | ||
96 | //Console.WriteLine("XXX " + cmd.CommandText); | ||
97 | |||
98 | return cmd.ExecuteReader(); | ||
99 | } | ||
100 | >>>>>>> cc67de5... rename SQLiteNG to SQLite and SQLite to SQLiteLegacy:OpenSim/Data/SQLite/SQLiteFramework.cs | ||
74 | } | 101 | } |
75 | 102 | ||
76 | protected void CloseReaderCommand(SqliteCommand cmd) | 103 | protected void CloseReaderCommand(SqliteCommand cmd) |