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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
7f51d138
Commit
7f51d138
authored
Dec 31, 2004
by
jocuri%softhome.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch for bug 275523: Replace INNER JOIN in flag searches with LEFT JOIN; patch…
Patch for bug 275523: Replace INNER JOIN in flag searches with LEFT JOIN; patch by me, r=joel, a=justdave.
parent
c7c879f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
Search.pm
Bugzilla/Search.pm
+12
-8
No files found.
Bugzilla/Search.pm
View file @
7f51d138
...
@@ -730,17 +730,21 @@ sub init {
...
@@ -730,17 +730,21 @@ sub init {
}
}
},
},
"^requestees.login_name,"
=>
sub
{
"^requestees.login_name,"
=>
sub
{
push
(
@supptables
,
"flags flags_$chartid"
);
my
$flags
=
"flags_$chartid"
;
push
(
@wherepart
,
"bugs.bug_id = flags_$chartid.bug_id"
);
push
(
@supptables
,
"LEFT JOIN flags $flags "
.
push
(
@supptables
,
"profiles requestees_$chartid"
);
"ON bugs.bug_id = $flags.bug_id "
.
push
(
@wherepart
,
"flags_$chartid.requestee_id = requestees_$chartid.userid"
);
"AND $flags.is_active = 1"
);
push
(
@supptables
,
"LEFT JOIN profiles requestees_$chartid "
.
"ON $flags.requestee_id = requestees_$chartid.userid"
);
$f
=
"requestees_$chartid.login_name"
;
$f
=
"requestees_$chartid.login_name"
;
},
},
"^setters.login_name,"
=>
sub
{
"^setters.login_name,"
=>
sub
{
push
(
@supptables
,
"flags flags_$chartid"
);
my
$flags
=
"flags_$chartid"
;
push
(
@wherepart
,
"bugs.bug_id = flags_$chartid.bug_id"
);
push
(
@supptables
,
"LEFT JOIN flags $flags "
.
push
(
@supptables
,
"profiles setters_$chartid"
);
"ON bugs.bug_id = $flags.bug_id "
.
push
(
@wherepart
,
"flags_$chartid.setter_id = setters_$chartid.userid"
);
"AND $flags.is_active = 1"
);
push
(
@supptables
,
"LEFT JOIN profiles setters_$chartid "
.
"ON $flags.setter_id = setters_$chartid.userid"
);
$f
=
"setters_$chartid.login_name"
;
$f
=
"setters_$chartid.login_name"
;
},
},
...
...
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