diff options
author | mkanat%kerio.com <> | 2005-07-02 14:23:27 +0200 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-07-02 14:23:27 +0200 |
commit | 8ef93208df4b0c83acb4d24772b7af062d36ec78 (patch) | |
tree | eb225a30db99a17be0842c907664069805daba63 /Bugzilla/Bug.pm | |
parent | 8f788c282f54e2f92dcae8d83c2397e4c3848ace (diff) | |
download | bugzilla-8ef93208df4b0c83acb4d24772b7af062d36ec78.tar.gz bugzilla-8ef93208df4b0c83acb4d24772b7af062d36ec78.tar.xz |
Bug 289042: Implicit joins should be replaced by explicit joins - installment B
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, r=joel, a=justdave
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-x | Bugzilla/Bug.pm | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 39864d252..675c2ec15 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -163,12 +163,16 @@ sub initBug { reporter_accessible, cclist_accessible, estimated_time, remaining_time, " . $dbh->sql_date_format('deadline', '%Y-%m-%d') . " - FROM bugs LEFT JOIN votes using(bug_id), - classifications, products, components - WHERE bugs.bug_id = ? - AND classifications.id = products.classification_id - AND products.id = bugs.product_id - AND components.id = bugs.component_id " . + FROM bugs + LEFT JOIN votes + USING (bug_id) + INNER JOIN components + ON components.id = bugs.component_id + INNER JOIN products + ON products.id = bugs.product_id + INNER JOIN classifications + ON classifications.id = products.classification_id + WHERE bugs.bug_id = ? " . $dbh->sql_group_by('bugs.bug_id', 'alias, products.classification_id, classifications.name, bugs.product_id, products.name, version, rep_platform, op_sys, bug_status, resolution, priority, |