1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed bug mdev-10875.

Now, after the implementation of mdev-8646
"Re-engineer the code for post-join operations"
create_sort_index() can be called for subqueries.
This commit is contained in:
Igor Babaev
2017-01-30 11:56:23 -08:00
parent 1d96b09890
commit 81c1abe8cf
3 changed files with 32 additions and 3 deletions

View File

@ -21403,9 +21403,6 @@ create_sort_index(THD *thd, JOIN *join, JOIN_TAB *tab, Filesort *fsort)
table= tab->table;
select= fsort->select;
/* Currently ORDER BY ... LIMIT is not supported in subqueries. */
DBUG_ASSERT(join->group_list || !join->is_in_subquery());
table->status=0; // May be wrong if quick_select
if (!tab->preread_init_done && tab->preread_init())