aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-10-07 01:43:43 +0000
committermkanat%kerio.com <>2005-10-07 01:43:43 +0000
commitb808272b74ab202b17964fbb64b189e4b912ec2b (patch)
treed89d16b81a61026a7732245de1cfb60810e38620 /Bugzilla
parentcf77347aeaa2045ffd27ad2a4a511e9f150bcf49 (diff)
downloadbugs-b808272b74ab202b17964fbb64b189e4b912ec2b.tar
bugs-b808272b74ab202b17964fbb64b189e4b912ec2b.tar.gz
bugs-b808272b74ab202b17964fbb64b189e4b912ec2b.tar.bz2
bugs-b808272b74ab202b17964fbb64b189e4b912ec2b.tar.xz
bugs-b808272b74ab202b17964fbb64b189e4b912ec2b.zip
Bug 309680: Use SQL "JOIN ... ON ..." syntax instead of "JOIN ... USING(...)"
Patch By Lance Larsh <lance.larsh@oracle.com> r=mkanat, a=justdave
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index b9206b9a0..e050d2211 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -177,7 +177,7 @@ sub initBug {
$dbh->sql_date_format('deadline', '%Y-%m-%d') . "
FROM bugs
LEFT JOIN votes
- USING (bug_id)
+ ON bugs.bug_id = votes.bug_id
INNER JOIN components
ON components.id = bugs.component_id
INNER JOIN products
@@ -1011,7 +1011,7 @@ sub RemoveVotes {
"products.votesperuser, products.maxvotesperbug " .
"FROM profiles " .
"LEFT JOIN votes ON profiles.userid = votes.who " .
- "LEFT JOIN bugs USING(bug_id) " .
+ "LEFT JOIN bugs ON votes.bug_id = bugs.bug_id " .
"LEFT JOIN products ON products.id = bugs.product_id " .
"WHERE votes.bug_id = ? " . $whopart);
$sth->execute($id);