aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLManager.cs
diff options
context:
space:
mode:
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>