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
767039b4
Commit
767039b4
authored
Aug 03, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 780028: Oracle crashes if a column listed in ORDER BY appears twice in SELECT
r=glob a=LpSolit
parent
f4f66107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
Search.pm
Bugzilla/Search.pm
+13
-4
No files found.
Bugzilla/Search.pm
View file @
767039b4
...
...
@@ -835,10 +835,19 @@ sub _add_extra_column {
# These are the columns that we're going to be actually SELECTing.
sub
_display_columns
{
my
(
$self
)
=
@_
;
# Do not alter the list specified here at all, even if they are duplicated.
# Those are passed by the caller, and the caller expects to get them back
# in the exact same order.
$self
->
{
display_columns
}
||=
[
$self
->
_input_columns
,
$self
->
_extra_columns
];
return
@
{
$self
->
{
display_columns
}
}
if
$self
->
{
display_columns
};
# Do not alter the list from _input_columns at all, even if there are
# duplicated columns. Those are passed by the caller, and the caller
# expects to get them back in the exact same order.
my
@columns
=
$self
->
_input_columns
;
# Only add columns which are not already listed.
my
%
list
=
map
{
$_
=>
1
}
@columns
;
foreach
my
$column
(
$self
->
_extra_columns
)
{
push
(
@columns
,
$column
)
unless
$list
{
$column
}
++
;
}
$self
->
{
display_columns
}
=
\
@columns
;
return
@
{
$self
->
{
display_columns
}
};
}
...
...
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