mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.2 into 10.3
This commit is contained in:
@ -3399,7 +3399,8 @@ JOIN::create_postjoin_aggr_table(JOIN_TAB *tab, List<Item> *table_fields,
|
||||
if (setup_sum_funcs(thd, sum_funcs))
|
||||
goto err;
|
||||
|
||||
if (!group_list && !table->distinct && order && simple_order)
|
||||
if (!group_list && !table->distinct && order && simple_order &&
|
||||
tab == join_tab + const_tables)
|
||||
{
|
||||
DBUG_PRINT("info",("Sorting for order"));
|
||||
THD_STAGE_INFO(thd, stage_sorting_for_order);
|
||||
|
Reference in New Issue
Block a user