Fix for bug 71396 - $::db->do isn't needed anymore

Patch by Christian Reis <kiko@async.com.br>
r= jake@acutex.net
This commit is contained in:
jake%acutex.net 2001-06-16 14:51:16 +00:00
Родитель 293d84166b
Коммит 583e8ba725
4 изменённых файлов: 20 добавлений и 36 удалений

Просмотреть файл

@ -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.<BR>\n";

Просмотреть файл

@ -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";

Просмотреть файл

@ -599,15 +599,11 @@ if ($action eq 'delete') {
while (MoreSQLData()) {
my $bugid = FetchOneColumn();
my $query =
$::db->do("DELETE FROM attachments WHERE bug_id=$bugid")
or die "$::db_errstr";
$query =
$::db->do("DELETE FROM bugs_activity WHERE bug_id=$bugid")
or die "$::db_errstr";
$query =
$::db->do("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";

Просмотреть файл

@ -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";