mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix incorrect parameter passing to create_tmp_table in create_result_table
Create_tmp_table was called incorrectly called in select_materialized_with_stats::create_result_table, having keep_row_order passed for the do_not_open parameter and keep_row_order always set to false.
This commit is contained in:
@@ -3837,7 +3837,7 @@ create_result_table(THD *thd_arg, List<Item> *column_types,
|
|||||||
if (! (table= create_tmp_table(thd_arg, &tmp_table_param, *column_types,
|
if (! (table= create_tmp_table(thd_arg, &tmp_table_param, *column_types,
|
||||||
(ORDER*) 0, is_union_distinct, 1,
|
(ORDER*) 0, is_union_distinct, 1,
|
||||||
options, HA_POS_ERROR, (char*) table_alias,
|
options, HA_POS_ERROR, (char*) table_alias,
|
||||||
keep_row_order)))
|
!create_table, keep_row_order)))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
col_stat= (Column_statistics*) table->in_use->alloc(table->s->fields *
|
col_stat= (Column_statistics*) table->in_use->alloc(table->s->fields *
|
||||||
|
Reference in New Issue
Block a user