From 00596a2197a5e3852640fbdf1ddb694546dbf555 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Tue, 3 Dec 2013 08:45:15 +1000 Subject: [PATCH] Bug 944583 - sendunsentbugmail.pl has bad SQL r=glob, a=sgreen --- contrib/sendunsentbugmail.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/sendunsentbugmail.pl b/contrib/sendunsentbugmail.pl index 94ad25de46..46105776f1 100755 --- a/contrib/sendunsentbugmail.pl +++ b/contrib/sendunsentbugmail.pl @@ -17,10 +17,9 @@ use Bugzilla::BugMail; my $dbh = Bugzilla->dbh; my $list = $dbh->selectcol_arrayref( - 'SELECT bug_id FROM bugs - WHERE lastdiffed IS NULL - OR lastdiffed < delta_ts - AND delta_ts < ' + 'SELECT bug_id FROM bugs + WHERE (lastdiffed IS NULL OR lastdiffed < delta_ts) + AND delta_ts < ' . $dbh->sql_date_math('NOW()', '-', 30, 'MINUTE') . ' ORDER BY bug_id'); -- 2.47.2