summaryrefslogtreecommitdiffstats
path: root/whineatnews.pl
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-04-05 06:52:03 +0200
committermkanat%kerio.com <>2005-04-05 06:52:03 +0200
commitf5f31fc070588c2075dd13a0fbabe8117e3aad76 (patch)
tree4a3bb48995143c84fcb8f222b420814e1c6e8eaf /whineatnews.pl
parentd71d64d9372f1556cec96434179b4cb1f9668e92 (diff)
downloadbugzilla-f5f31fc070588c2075dd13a0fbabe8117e3aad76.tar.gz
bugzilla-f5f31fc070588c2075dd13a0fbabe8117e3aad76.tar.xz
Bug 286235: Implicit joins should be replaced by explicit joins - installment A
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=joel, a=myk
Diffstat (limited to 'whineatnews.pl')
-rwxr-xr-xwhineatnews.pl12
1 files changed, 7 insertions, 5 deletions
diff --git a/whineatnews.pl b/whineatnews.pl
index d90e775fa..286b0c542 100755
--- a/whineatnews.pl
+++ b/whineatnews.pl
@@ -34,11 +34,13 @@ require "globals.pl";
use Bugzilla::BugMail;
my $dbh = Bugzilla->dbh;
-SendSQL("SELECT bug_id, short_desc, login_name FROM bugs, profiles WHERE " .
- "(bug_status = 'NEW' OR bug_status = 'REOPENED') AND " .
- $dbh->sql_to_days('NOW()') . " - " .
- $dbh->sql_to_days('delta_ts') . " > " . Param('whinedays') .
- " AND userid = assigned_to ORDER BY bug_id");
+SendSQL("SELECT bug_id, short_desc, login_name " .
+ "FROM bugs INNER JOIN profiles ON userid = assigned_to " .
+ "WHERE (bug_status = 'NEW' OR bug_status = 'REOPENED') " .
+ "AND " . $dbh->sql_to_days('NOW()') . " - " .
+ $dbh->sql_to_days('delta_ts') . " > " .
+ Param('whinedays') . " " .
+ "ORDER BY bug_id");
my %bugs;
my %desc;