diff options
author | jake%acutex.net <> | 2001-06-16 21:51:15 +0000 |
---|---|---|
committer | jake%acutex.net <> | 2001-06-16 21:51:15 +0000 |
commit | ac03b19a3eeda57e38dd90bbb8333f77039c944f (patch) | |
tree | 3396f98f0eef19192717c96db653b9e0d607b73e /editversions.cgi | |
parent | Fix for bug 83619 - QuickSearch was crashing Netscape 4.76 and 4.77 on Unix (diff) | |
download | bugzilla-ac03b19a3eeda57e38dd90bbb8333f77039c944f.tar.gz bugzilla-ac03b19a3eeda57e38dd90bbb8333f77039c944f.tar.bz2 bugzilla-ac03b19a3eeda57e38dd90bbb8333f77039c944f.zip |
Fix for bug 71396 - $::db->do isn't needed anymore
Patch by Christian Reis <kiko@async.com.br>
r= jake@acutex.net
Diffstat (limited to 'editversions.cgi')
-rwxr-xr-x | editversions.cgi | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/editversions.cgi b/editversions.cgi index 0efbc070b..381d28ed9 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -436,15 +436,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"); + PushGlobalSQLState(); } print "Attachments, bug activity and dependencies deleted.<BR>\n"; |