diff options
author | Justin Clark-Casey (justincc) | 2010-06-08 15:50:21 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-06-08 15:50:21 +0100 |
commit | a160b44e0766329a6c336adcb804cede39e00fc7 (patch) | |
tree | edf6d5070a0bb9dcba424cf883fe20a7c96af751 /OpenSim/Data/SQLite/SQLiteFramework.cs | |
parent | If a transfer request is received for a task inventory item asset, then route... (diff) | |
parent | minor: remove some commented out code and return ScenePresence.UpdatePriority... (diff) | |
download | opensim-SC-a160b44e0766329a6c336adcb804cede39e00fc7.zip opensim-SC-a160b44e0766329a6c336adcb804cede39e00fc7.tar.gz opensim-SC-a160b44e0766329a6c336adcb804cede39e00fc7.tar.bz2 opensim-SC-a160b44e0766329a6c336adcb804cede39e00fc7.tar.xz |
Merge branch '0.6.9-post-fixes' into share-with-group
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteFramework.cs')
-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 |