diff options
author | Melanie | 2010-05-09 18:03:57 +0100 |
---|---|---|
committer | Melanie | 2010-05-09 18:03:57 +0100 |
commit | 6a3e1734e67b4d6d4a9144e4f86658297eef11a6 (patch) | |
tree | 7132abbe44017ebe97034c1a4149fad743ce03a7 /OpenSim/Data/MySQL | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
parent | Add Delete handler to SQLite (NG) (diff) | |
download | opensim-SC_OLD-6a3e1734e67b4d6d4a9144e4f86658297eef11a6.zip opensim-SC_OLD-6a3e1734e67b4d6d4a9144e4f86658297eef11a6.tar.gz opensim-SC_OLD-6a3e1734e67b4d6d4a9144e4f86658297eef11a6.tar.bz2 opensim-SC_OLD-6a3e1734e67b4d6d4a9144e4f86658297eef11a6.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLAssetData.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs index 5a2af4f..35eed56 100644 --- a/OpenSim/Data/MySQL/MySQLAssetData.cs +++ b/OpenSim/Data/MySQL/MySQLAssetData.cs | |||
@@ -338,6 +338,24 @@ namespace OpenSim.Data.MySQL | |||
338 | return retList; | 338 | return retList; |
339 | } | 339 | } |
340 | 340 | ||
341 | public override bool Delete(string id) | ||
342 | { | ||
343 | lock (m_dbLock) | ||
344 | { | ||
345 | using (MySqlConnection dbcon = new MySqlConnection(m_connectionString)) | ||
346 | { | ||
347 | dbcon.Open(); | ||
348 | MySqlCommand cmd = new MySqlCommand("delete from assets where id=?id"); | ||
349 | cmd.Parameters.AddWithValue("?id", id); | ||
350 | cmd.ExecuteNonQuery(); | ||
351 | |||
352 | cmd.Dispose(); | ||
353 | } | ||
354 | } | ||
355 | |||
356 | return true; | ||
357 | } | ||
358 | |||
341 | #endregion | 359 | #endregion |
342 | } | 360 | } |
343 | } | 361 | } |