| 4764 | |
| 4765 | |
| 4766 | bool |
| 4767 | select_materialize_with_stats:: |
| 4768 | create_result_table(THD *thd_arg, List<Item> *column_types, |
| 4769 | bool is_union_distinct, ulonglong options, |
| 4770 | const LEX_CSTRING *table_alias, bool bit_fields_as_long, |
| 4771 | bool create_table, |
| 4772 | bool keep_row_order, |
| 4773 | uint hidden) |
| 4774 | { |
| 4775 | DBUG_ASSERT(table == 0); |
| 4776 | tmp_table_param.field_count= column_types->elements; |
| 4777 | tmp_table_param.func_count= tmp_table_param.field_count; |
| 4778 | tmp_table_param.bit_fields_as_long= bit_fields_as_long; |
| 4779 | |
| 4780 | if (! (table= create_tmp_table(thd_arg, &tmp_table_param, *column_types, |
| 4781 | (ORDER*) 0, is_union_distinct, 1, |
| 4782 | options, HA_POS_ERROR, table_alias, |
| 4783 | !create_table, keep_row_order))) |
| 4784 | return TRUE; |
| 4785 | |
| 4786 | col_stat= table->in_use->alloc<Column_statistics>(table->s->fields); |
| 4787 | if (!col_stat) |
| 4788 | return TRUE; |
| 4789 | |
| 4790 | reset(); |
| 4791 | table->file->extra(HA_EXTRA_WRITE_CACHE); |
| 4792 | table->file->extra(HA_EXTRA_IGNORE_DUP_KEY); |
| 4793 | return FALSE; |
| 4794 | } |
| 4795 | |
| 4796 | |
| 4797 | void select_materialize_with_stats::reset() |
nothing calls this directly
no test coverage detected