diff options
author | Justin Clark-Casey (justincc) | 2010-04-30 20:05:57 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-04-30 20:05:57 +0100 |
commit | 0b8b302aa0f2ee25be5cbdfefe232459e6e5b778 (patch) | |
tree | 8108a73ddf306c5f011e7bf91fb8ead5b6a678aa /OpenSim/Data/SQLite/SQLiteFramework.cs | |
parent | take out some debug logging in the sqlite db adaptor (diff) | |
download | opensim-SC-0b8b302aa0f2ee25be5cbdfefe232459e6e5b778.zip opensim-SC-0b8b302aa0f2ee25be5cbdfefe232459e6e5b778.tar.gz opensim-SC-0b8b302aa0f2ee25be5cbdfefe232459e6e5b778.tar.bz2 opensim-SC-0b8b302aa0f2ee25be5cbdfefe232459e6e5b778.tar.xz |
Fix a bunch of issues that crop up after the naive porting of the new sqlite db from master to 0.6.9
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteFramework.cs')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteFramework.cs | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteFramework.cs b/OpenSim/Data/SQLite/SQLiteFramework.cs index 79eaab3..9567727 100644 --- a/OpenSim/Data/SQLite/SQLiteFramework.cs +++ b/OpenSim/Data/SQLite/SQLiteFramework.cs | |||
@@ -57,19 +57,7 @@ namespace OpenSim.Data.SQLite | |||
57 | { | 57 | { |
58 | lock (m_Connection) | 58 | lock (m_Connection) |
59 | { | 59 | { |
60 | <<<<<<< HEAD:OpenSim/Data/SQLite/SQLiteFramework.cs | ||
61 | cmd.Connection = m_Connection; | 60 | 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 | ||
73 | 61 | ||
74 | return cmd.ExecuteNonQuery(); | 62 | return cmd.ExecuteNonQuery(); |
75 | } | 63 | } |
@@ -77,27 +65,18 @@ namespace OpenSim.Data.SQLite | |||
77 | 65 | ||
78 | protected IDataReader ExecuteReader(SqliteCommand cmd) | 66 | protected IDataReader ExecuteReader(SqliteCommand cmd) |
79 | { | 67 | { |
80 | <<<<<<< HEAD:OpenSim/Data/SQLite/SQLiteFramework.cs | 68 | lock (m_Connection) |
81 | SqliteConnection newConnection = | ||
82 | (SqliteConnection)((ICloneable)m_Connection).Clone(); | ||
83 | newConnection.Open(); | ||
84 | |||
85 | cmd.Connection = newConnection; | ||
86 | return cmd.ExecuteReader(); | ||
87 | ======= | ||
88 | lock (connection) | ||
89 | { | 69 | { |
90 | //SqliteConnection newConnection = | 70 | //SqliteConnection newConnection = |
91 | // (SqliteConnection)((ICloneable)connection).Clone(); | 71 | // (SqliteConnection)((ICloneable)connection).Clone(); |
92 | //newConnection.Open(); | 72 | //newConnection.Open(); |
93 | 73 | ||
94 | //cmd.Connection = newConnection; | 74 | //cmd.Connection = newConnection; |
95 | cmd.Connection = connection; | 75 | cmd.Connection = m_Connection; |
96 | //Console.WriteLine("XXX " + cmd.CommandText); | 76 | //Console.WriteLine("XXX " + cmd.CommandText); |
97 | 77 | ||
98 | return cmd.ExecuteReader(); | 78 | return cmd.ExecuteReader(); |
99 | } | 79 | } |
100 | >>>>>>> cc67de5... rename SQLiteNG to SQLite and SQLite to SQLiteLegacy:OpenSim/Data/SQLite/SQLiteFramework.cs | ||
101 | } | 80 | } |
102 | 81 | ||
103 | protected void CloseReaderCommand(SqliteCommand cmd) | 82 | protected void CloseReaderCommand(SqliteCommand cmd) |
@@ -107,4 +86,4 @@ namespace OpenSim.Data.SQLite | |||
107 | cmd.Dispose(); | 86 | cmd.Dispose(); |
108 | } | 87 | } |
109 | } | 88 | } |
110 | } | 89 | } \ No newline at end of file |