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

Function create_tmp_table

sql/sql_select.cc:23019–23036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23017
23018
23019TABLE *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
23039TABLE *create_tmp_table_for_schema(THD *thd, TMP_TABLE_PARAM *param,

Callers 14

initialize_tablesMethod · 0.85
setupMethod · 0.85
create_result_tableMethod · 0.85
create_tmp_tableMethod · 0.85
prepareMethod · 0.85
make_aggr_tables_infoMethod · 0.85
initialize_tablesMethod · 0.85
initMethod · 0.85
create_result_tableMethod · 0.85
create_dummy_tmp_tableFunction · 0.85

Calls 4

add_fieldsMethod · 0.80
cleanup_on_failureMethod · 0.80
startMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected