Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
b808272b
Commit
b808272b
authored
Oct 07, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 309680: Use SQL "JOIN ... ON ..." syntax instead of "JOIN ... USING(...)"
Patch By Lance Larsh <lance.larsh@oracle.com> r=mkanat, a=justdave
parent
cf77347a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Bug.pm
Bugzilla/Bug.pm
+2
-2
checksetup.pl
checksetup.pl
+1
-1
No files found.
Bugzilla/Bug.pm
View file @
b808272b
...
...
@@ -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
);
...
...
checksetup.pl
View file @
b808272b
...
...
@@ -2445,7 +2445,7 @@ if (!($sth->fetchrow_arrayref()->[0])) {
$sth
=
$dbh
->
prepare
(
"SELECT longdescs.bug_id, thetext "
.
"FROM longdescs "
.
"LEFT JOIN bugs
using(bug_id)
"
.
"LEFT JOIN bugs
ON longdescs.bug_id = bugs.bug_id
"
.
"WHERE ("
.
$dbh
->
sql_regexp
(
"thetext"
,
"'[.*.]{3} This bug has been marked as a duplicate of [[:digit:]]+ [.*.]{3}'"
)
.
") "
.
"AND (resolution = 'DUPLICATE') "
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment