Commit 50a44fc4 authored by Simon Green's avatar Simon Green

Bug 944583 - sendunsentbugmail.pl has bad SQL

r=glob, a=sgreen
parent d8395124
...@@ -17,10 +17,9 @@ use Bugzilla::BugMail; ...@@ -17,10 +17,9 @@ use Bugzilla::BugMail;
my $dbh = Bugzilla->dbh; my $dbh = Bugzilla->dbh;
my $list = $dbh->selectcol_arrayref( my $list = $dbh->selectcol_arrayref(
'SELECT bug_id FROM bugs 'SELECT bug_id FROM bugs
WHERE lastdiffed IS NULL WHERE (lastdiffed IS NULL OR lastdiffed < delta_ts)
OR lastdiffed < delta_ts AND delta_ts < '
AND delta_ts < '
. $dbh->sql_date_math('NOW()', '-', 30, 'MINUTE') . . $dbh->sql_date_math('NOW()', '-', 30, 'MINUTE') .
' ORDER BY bug_id'); ' ORDER BY bug_id');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment