diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteFramework.cs | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteFramework.cs b/OpenSim/Data/SQLite/SQLiteFramework.cs index 12b2750..9567727 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 | { |
@@ -65,12 +65,18 @@ namespace OpenSim.Data.SQLite | |||
65 | 65 | ||
66 | protected IDataReader ExecuteReader(SqliteCommand cmd) | 66 | protected IDataReader ExecuteReader(SqliteCommand cmd) |
67 | { | 67 | { |
68 | SqliteConnection newConnection = | 68 | lock (m_Connection) |
69 | (SqliteConnection)((ICloneable)m_Connection).Clone(); | 69 | { |
70 | newConnection.Open(); | 70 | //SqliteConnection newConnection = |
71 | // (SqliteConnection)((ICloneable)connection).Clone(); | ||
72 | //newConnection.Open(); | ||
71 | 73 | ||
72 | cmd.Connection = newConnection; | 74 | //cmd.Connection = newConnection; |
73 | return cmd.ExecuteReader(); | 75 | cmd.Connection = m_Connection; |
76 | //Console.WriteLine("XXX " + cmd.CommandText); | ||
77 | |||
78 | return cmd.ExecuteReader(); | ||
79 | } | ||
74 | } | 80 | } |
75 | 81 | ||
76 | protected void CloseReaderCommand(SqliteCommand cmd) | 82 | protected void CloseReaderCommand(SqliteCommand cmd) |
@@ -80,4 +86,4 @@ namespace OpenSim.Data.SQLite | |||
80 | cmd.Dispose(); | 86 | cmd.Dispose(); |
81 | } | 87 | } |
82 | } | 88 | } |
83 | } | 89 | } \ No newline at end of file |