Implement the "delete" path for assets. Adds a new option to allow remote asset deletion in robust handler.

This commit is contained in:
Melanie
2010-05-09 17:56:52 +01:00
parent 9b22393cf3
commit 60357d3778
11 changed files with 60 additions and 6 deletions

View File

@@ -338,6 +338,24 @@ namespace OpenSim.Data.MySQL
return retList;
}
public override bool Delete(string id)
{
lock (m_dbLock)
{
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
{
dbcon.Open();
MySqlCommand cmd = new MySqlCommand("delete from assets where id=?id");
cmd.Parameters.AddWithValue("?id", id);
cmd.ExecuteNonQuery();
cmd.Dispose();
}
}
return true;
}
#endregion
}
}