From 7e0d0282c4a589e67d71543300ea57a976cb8c1c Mon Sep 17 00:00:00 2001 From: BlueWall Date: Mon, 21 Jul 2014 12:42:16 -0400 Subject: Add missing parts to profiles - classified delete --- OpenSim/Data/MySQL/MySQLUserProfilesData.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'OpenSim/Data/MySQL/MySQLUserProfilesData.cs') diff --git a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs index e301bbe..adb75d6 100644 --- a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs +++ b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs @@ -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(); } } } -- cgit v1.1