Add missing parts to profiles - classified delete

This commit is contained in:
BlueWall
2014-07-21 12:42:16 -04:00
parent 899bcb7acd
commit 4a9282e681
2 changed files with 10 additions and 14 deletions

View File

@@ -250,7 +250,7 @@ namespace OpenSim.Data.MySQL
string query = string.Empty;
query += "DELETE FROM classifieds WHERE ";
query += "classifieduuid = ?ClasifiedId";
query += "classifieduuid = ?recordId";
try
{
@@ -260,12 +260,8 @@ namespace OpenSim.Data.MySQL
using (MySqlCommand cmd = new MySqlCommand(query, dbcon))
{
cmd.Parameters.AddWithValue("?ClassifiedId", recordId.ToString());
lock(Lock)
{
cmd.ExecuteNonQuery();
}
cmd.Parameters.AddWithValue("?recordId", recordId.ToString());
cmd.ExecuteNonQuery();
}
}
}