| 23017 | |
| 23018 | |
| 23019 | TABLE *create_tmp_table(THD *thd, TMP_TABLE_PARAM *param, List<Item> &fields, |
| 23020 | ORDER *group, bool distinct, bool save_sum_fields, |
| 23021 | ulonglong select_options, ha_rows rows_limit, |
| 23022 | const LEX_CSTRING *table_alias, bool do_not_open, |
| 23023 | bool keep_row_order) |
| 23024 | { |
| 23025 | TABLE *table; |
| 23026 | Create_tmp_table maker(group, distinct, save_sum_fields, select_options, |
| 23027 | rows_limit); |
| 23028 | if (!(table= maker.start(thd, param, table_alias)) || |
| 23029 | maker.add_fields(thd, table, param, fields) || |
| 23030 | maker.finalize(thd, table, param, do_not_open, keep_row_order)) |
| 23031 | { |
| 23032 | maker.cleanup_on_failure(thd, table); |
| 23033 | return NULL; |
| 23034 | } |
| 23035 | return table; |
| 23036 | } |
| 23037 | |
| 23038 | |
| 23039 | TABLE *create_tmp_table_for_schema(THD *thd, TMP_TABLE_PARAM *param, |
no test coverage detected