зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
293d84166b
Коммит
583e8ba725
|
@ -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";
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче