aboutsummaryrefslogtreecommitdiffstats
path: root/editmilestones.cgi
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-06-16 21:51:15 +0000
committerjake%acutex.net <>2001-06-16 21:51:15 +0000
commitac03b19a3eeda57e38dd90bbb8333f77039c944f (patch)
tree3396f98f0eef19192717c96db653b9e0d607b73e /editmilestones.cgi
parentccd9d1728bee34c894a92a49054eac5f7f4c065d (diff)
downloadbugs-ac03b19a3eeda57e38dd90bbb8333f77039c944f.tar
bugs-ac03b19a3eeda57e38dd90bbb8333f77039c944f.tar.gz
bugs-ac03b19a3eeda57e38dd90bbb8333f77039c944f.tar.bz2
bugs-ac03b19a3eeda57e38dd90bbb8333f77039c944f.tar.xz
bugs-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 'editmilestones.cgi')
-rwxr-xr-xeditmilestones.cgi14
1 files changed, 5 insertions, 9 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi
index 57fe78830..4ceda927a 100755
--- a/editmilestones.cgi
+++ b/editmilestones.cgi
@@ -425,15 +425,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.<BR>\n";