Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
dd8d719b
Commit
dd8d719b
authored
Apr 23, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved bug fix
sql/sql_select.cc: somewhat improved bug fix
parent
80b1cd80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
sql/sql_select.cc
sql/sql_select.cc
+10
-2
No files found.
sql/sql_select.cc
View file @
dd8d719b
...
@@ -555,10 +555,18 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
...
@@ -555,10 +555,18 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
/* Change DISTINCT to GROUP BY */
/* Change DISTINCT to GROUP BY */
select_distinct
=
0
;
select_distinct
=
0
;
no_order
=
!
order
;
no_order
=
!
order
;
if
(
order
&&
skip_sort_order
)
join
.
tmp_table_param
.
quick_group
=
0
;
if
(
all_order_fields_used
)
if
(
all_order_fields_used
)
{
if
(
order
&&
skip_sort_order
)
{
/*
Force MySQL to read the table in sorted order to get result in
ORDER BY order.
*/
join
.
tmp_table_param
.
quick_group
=
0
;
}
order
=
0
;
order
=
0
;
}
join
.
group
=
1
;
// For end_write_group
join
.
group
=
1
;
// For end_write_group
}
}
else
else
...
...
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