diff options
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLGenericTableHandler.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLGenericTableHandler.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs index 7d3593c..1253e0b 100644 --- a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs +++ b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs | |||
@@ -95,12 +95,12 @@ namespace OpenSim.Data.MySQL | |||
95 | } | 95 | } |
96 | } | 96 | } |
97 | 97 | ||
98 | public T[] Get(string field, string key) | 98 | public virtual T[] Get(string field, string key) |
99 | { | 99 | { |
100 | return Get(new string[] { field }, new string[] { key }); | 100 | return Get(new string[] { field }, new string[] { key }); |
101 | } | 101 | } |
102 | 102 | ||
103 | public T[] Get(string[] fields, string[] keys) | 103 | public virtual T[] Get(string[] fields, string[] keys) |
104 | { | 104 | { |
105 | if (fields.Length != keys.Length) | 105 | if (fields.Length != keys.Length) |
106 | return new T[0]; | 106 | return new T[0]; |
@@ -194,11 +194,10 @@ namespace OpenSim.Data.MySQL | |||
194 | return result.ToArray(); | 194 | return result.ToArray(); |
195 | } | 195 | } |
196 | 196 | ||
197 | public T[] Get(string where) | 197 | public virtual T[] Get(string where) |
198 | { | 198 | { |
199 | using (MySqlCommand cmd = new MySqlCommand()) | 199 | using (MySqlCommand cmd = new MySqlCommand()) |
200 | { | 200 | { |
201 | |||
202 | string query = String.Format("select * from {0} where {1}", | 201 | string query = String.Format("select * from {0} where {1}", |
203 | m_Realm, where); | 202 | m_Realm, where); |
204 | 203 | ||
@@ -208,7 +207,7 @@ namespace OpenSim.Data.MySQL | |||
208 | } | 207 | } |
209 | } | 208 | } |
210 | 209 | ||
211 | public bool Store(T row) | 210 | public virtual bool Store(T row) |
212 | { | 211 | { |
213 | using (MySqlCommand cmd = new MySqlCommand()) | 212 | using (MySqlCommand cmd = new MySqlCommand()) |
214 | { | 213 | { |
@@ -248,7 +247,7 @@ namespace OpenSim.Data.MySQL | |||
248 | } | 247 | } |
249 | } | 248 | } |
250 | 249 | ||
251 | public bool Delete(string field, string val) | 250 | public virtual bool Delete(string field, string val) |
252 | { | 251 | { |
253 | using (MySqlCommand cmd = new MySqlCommand()) | 252 | using (MySqlCommand cmd = new MySqlCommand()) |
254 | { | 253 | { |