| 23037 | |
| 23038 | |
| 23039 | TABLE *create_tmp_table_for_schema(THD *thd, TMP_TABLE_PARAM *param, |
| 23040 | const ST_SCHEMA_TABLE &schema_table, |
| 23041 | longlong select_options, |
| 23042 | const LEX_CSTRING &table_alias, |
| 23043 | bool do_not_open, bool keep_row_order) |
| 23044 | { |
| 23045 | TABLE *table; |
| 23046 | Create_tmp_table maker((ORDER *) NULL, false, false, |
| 23047 | select_options, HA_ROWS_MAX); |
| 23048 | if (!(table= maker.start(thd, param, &table_alias)) || |
| 23049 | maker.add_schema_fields(thd, table, param, schema_table) || |
| 23050 | maker.finalize(thd, table, param, do_not_open, keep_row_order)) |
| 23051 | { |
| 23052 | maker.cleanup_on_failure(thd, table); |
| 23053 | return NULL; |
| 23054 | } |
| 23055 | return table; |
| 23056 | } |
| 23057 | |
| 23058 | |
| 23059 | /****************************************************************************/ |
no test coverage detected