MCPcopy Create free account
hub / github.com/MariaDB/server / create_tmp_table_for_schema

Function create_tmp_table_for_schema

sql/sql_select.cc:23039–23056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23037
23038
23039TABLE *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/****************************************************************************/

Callers 1

create_schema_tableFunction · 0.85

Calls 4

add_schema_fieldsMethod · 0.80
cleanup_on_failureMethod · 0.80
startMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected