Skip to content

Commit

Permalink
Fix incorrect parameter passing to create_tmp_table in create_result_…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
cvicentiu committed Feb 26, 2015
1 parent d7c6f11 commit 77806da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_class.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
(ORDER*) 0, is_union_distinct, 1,
options, HA_POS_ERROR, (char*) table_alias,
keep_row_order)))
!create_table, keep_row_order)))
return TRUE;

col_stat= (Column_statistics*) table->in_use->alloc(table->s->fields *
Expand Down

0 comments on commit 77806da

Please sign in to comment.