Commit 3fcc4f6f authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

cleanup: make_aggr_tables_info pass parameters from existing local variables

Local variables such as keep_row_order are semantically clearer on the
intent, rather than using an or condition twice.
parent 7e7ca09c
...@@ -3308,10 +3308,10 @@ bool JOIN::make_aggr_tables_info() ...@@ -3308,10 +3308,10 @@ bool JOIN::make_aggr_tables_info()
DBUG_RETURN(1); DBUG_RETURN(1);
TABLE* table= create_tmp_table(thd, curr_tab->tmp_table_param, TABLE* table= create_tmp_table(thd, curr_tab->tmp_table_param,
all_fields, all_fields,
NULL, query.distinct, NULL, distinct,
TRUE, select_options, HA_POS_ERROR, TRUE, select_options, HA_POS_ERROR,
&empty_clex_str, !need_tmp, &empty_clex_str, !need_tmp,
query.order_by || query.group_by); keep_row_order);
if (!table) if (!table)
DBUG_RETURN(1); DBUG_RETURN(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment