aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteFramework.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/SQLite/SQLiteFramework.cs27
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