diff options
author | Justin Clark-Casey (justincc) | 2010-04-30 17:45:00 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-04-30 19:28:28 +0100 |
commit | 56fe4c24b8c67ec3b6a5a897c35ab19507bd1077 (patch) | |
tree | 8feccd68058c70da1b96d8b6e804aa4afa6dc723 /OpenSim/Data/SQLite/SQLiteFramework.cs | |
parent | add Mono.Data.Sqlite.dll (diff) | |
download | opensim-SC_OLD-56fe4c24b8c67ec3b6a5a897c35ab19507bd1077.zip opensim-SC_OLD-56fe4c24b8c67ec3b6a5a897c35ab19507bd1077.tar.gz opensim-SC_OLD-56fe4c24b8c67ec3b6a5a897c35ab19507bd1077.tar.bz2 opensim-SC_OLD-56fe4c24b8c67ec3b6a5a897c35ab19507bd1077.tar.xz |
rename SQLiteNG to SQLite and SQLite to SQLiteLegacy this seems the least evil way forward since mono 2.6 and later will see increasing usage, and this only works with what was
SQLiteNG MAC USERS WILL NEED TO CHANGE REFERENCES TO "OpenSim.Data.SQLite.dll" to "OpenSim.Data.SQLiteLegacy.dll" in OpenSim.ini and config-include/StandaloneCommon.ini (if
using standalone) See the OpenSim.ini.example and StandaloneCommon.ini.example files for more details This commit also temporarily changes unsigned ParentEstateID values in the
OpenSim.Data.Tests to signed temporarily, since the new plugin enforces creation of signed fields in the database (which is what the SQL actually specifies). And change data
columns in sqlite is a pita.
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) |