aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLManager.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-03 02:51:34 +0000
committerMelanie Thielker2008-09-03 02:51:34 +0000
commite98780fea5c9235da50062f09cac4d415c7f2125 (patch)
treedbd051d601a02f74d1b45ff82d8243b1d7b4ab4b /OpenSim/Data/MySQL/MySQLManager.cs
parenta piece of LSL_API changes got checked in incorectly with 6091. This (diff)
downloadopensim-SC_OLD-e98780fea5c9235da50062f09cac4d415c7f2125.zip
opensim-SC_OLD-e98780fea5c9235da50062f09cac4d415c7f2125.tar.gz
opensim-SC_OLD-e98780fea5c9235da50062f09cac4d415c7f2125.tar.bz2
opensim-SC_OLD-e98780fea5c9235da50062f09cac4d415c7f2125.tar.xz
Mantis #2099
Thank you, cmickeyb, for a patch that corrects the database connection handling in the multithreaded user server.
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLManager.cs')
-rw-r--r--OpenSim/Data/MySQL/MySQLManager.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLManager.cs b/OpenSim/Data/MySQL/MySQLManager.cs
index 15bdf44..e863216 100644
--- a/OpenSim/Data/MySQL/MySQLManager.cs
+++ b/OpenSim/Data/MySQL/MySQLManager.cs
@@ -280,6 +280,19 @@ namespace OpenSim.Data.MySQL
280 cmd.ExecuteNonQuery(); 280 cmd.ExecuteNonQuery();
281 } 281 }
282 282
283 public void ExecuteParameterizedSql(string sql, Dictionary<string, string> parameters)
284 {
285 CheckConnection();
286
287 MySqlCommand cmd = (MySqlCommand)dbcon.CreateCommand();
288 cmd.CommandText = sql;
289 foreach (KeyValuePair<string, string> param in parameters)
290 {
291 cmd.Parameters.AddWithValue(param.Key, param.Value);
292 }
293 cmd.ExecuteNonQuery();
294 }
295
283 /// <summary> 296 /// <summary>
284 /// Given a list of tables, return the version of the tables, as seen in the database 297 /// Given a list of tables, return the version of the tables, as seen in the database
285 /// </summary> 298 /// </summary>