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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
850fb901
Commit
850fb901
authored
Oct 06, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded comments
parent
b988331b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
sql/sql_select.cc
sql/sql_select.cc
+1
-9
No files found.
sql/sql_select.cc
View file @
850fb901
...
...
@@ -19038,14 +19038,6 @@ create_sort_index(THD *thd, JOIN *join, ORDER *order,
/* Currently ORDER BY ... LIMIT is not supported in subqueries. */
DBUG_ASSERT
(
join
->
group_list
||
!
join
->
is_in_subquery
());
/*
If we have a select->quick object that is created outside of
create_sort_index() and this is part of a subquery that
potentially can be executed multiple times then we should not
delete the quick object on exit from this function.
*/
//bool keep_quick= select && select->quick && join->join_tab_save;
/*
When there is SQL_BIG_RESULT do not sort using index for GROUP BY,
and thus force sorting on disk unless a group min-max optimization
...
...
@@ -19097,7 +19089,6 @@ create_sort_index(THD *thd, JOIN *join, ORDER *order,
get_quick_select_for_ref
(
thd
,
table
,
&
tab
->
ref
,
tab
->
found_records
))))
goto
err
;
//DBUG_ASSERT(!keep_quick);//psergey-post-merge-check
quick_created
=
TRUE
;
}
}
...
...
@@ -19145,6 +19136,7 @@ create_sort_index(THD *thd, JOIN *join, ORDER *order,
/*TODO: here, close the index scan, cancel index-only read. */
tab
->
records
=
table
->
sort
.
found_records
;
// For SQL_CALC_ROWS
#if 0
/* MariaDB doesn't need the following: */
if (select)
{
/*
...
...
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