diff options
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLGenericTableHandler.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLGenericTableHandler.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs index 7d3593c..b170dde 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,7 +194,7 @@ 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 | { |
@@ -208,7 +208,7 @@ namespace OpenSim.Data.MySQL | |||
208 | } | 208 | } |
209 | } | 209 | } |
210 | 210 | ||
211 | public bool Store(T row) | 211 | public virtual bool Store(T row) |
212 | { | 212 | { |
213 | using (MySqlCommand cmd = new MySqlCommand()) | 213 | using (MySqlCommand cmd = new MySqlCommand()) |
214 | { | 214 | { |
@@ -248,7 +248,7 @@ namespace OpenSim.Data.MySQL | |||
248 | } | 248 | } |
249 | } | 249 | } |
250 | 250 | ||
251 | public bool Delete(string field, string val) | 251 | public virtual bool Delete(string field, string val) |
252 | { | 252 | { |
253 | using (MySqlCommand cmd = new MySqlCommand()) | 253 | using (MySqlCommand cmd = new MySqlCommand()) |
254 | { | 254 | { |