diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2015-02-26 23:31:35 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2015-02-26 23:31:35 +0200 |
commit | 77806da0da65add3a9e1709aa9b14c3496d33dd1 (patch) | |
tree | 5396bda624fab01ac51dbaa1c663dd55dc062ff4 | |
parent | d7c6f1191d375f703dd4d7d30d47c8221a9257ee (diff) | |
download | mariadb-git-77806da0da65add3a9e1709aa9b14c3496d33dd1.tar.gz |
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.
-rw-r--r-- | sql/sql_class.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 9c457557bcb..7bbc36d6cb5 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -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 * |