From ac03b19a3eeda57e38dd90bbb8333f77039c944f Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" <> Date: Sat, 16 Jun 2001 21:51:15 +0000 Subject: Fix for bug 71396 - $::db->do isn't needed anymore Patch by Christian Reis r= jake@acutex.net --- editcomponents.cgi | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'editcomponents.cgi') diff --git a/editcomponents.cgi b/editcomponents.cgi index dcca05bba..30f9dd4ea 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -608,15 +608,11 @@ if ($action eq 'delete') { while (MoreSQLData()) { my $bugid = FetchOneColumn(); - my $query = - $::db->query("DELETE FROM attachments WHERE bug_id=$bugid") - or die "$::db_errstr"; - $query = - $::db->query("DELETE FROM bugs_activity WHERE bug_id=$bugid") - or die "$::db_errstr"; - $query = - $::db->query("DELETE FROM dependencies WHERE blocked=$bugid") - or die "$::db_errstr"; + PushGlobalSQLState(); + SendSQL("DELETE FROM attachments WHERE bug_id=$bugid"); + SendSQL("DELETE FROM bugs_activity WHERE bug_id=$bugid"); + SendSQL("DELETE FROM dependencies WHERE blocked=$bugid"); + PopGlobalSQLState(); } print "Attachments, bug activity and dependencies deleted.
\n"; -- cgit v1.2.3-24-g4f1b