]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 944583 - sendunsentbugmail.pl has bad SQL
authorSimon Green <sgreen@redhat.com>
Mon, 2 Dec 2013 22:44:46 +0000 (08:44 +1000)
committerSimon Green <sgreen@redhat.com>
Mon, 2 Dec 2013 22:44:46 +0000 (08:44 +1000)
r=glob, a=sgreen

contrib/sendunsentbugmail.pl

index 536d12146c4991c4f094e488f7076bafd3d646ca..47455413562a113426b0daeeaae8fba00ba93656 100755 (executable)
@@ -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');