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

Method prepare_result

sql/sql_select.cc:4802–4824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4800*/
4801
4802bool JOIN::prepare_result(List<Item> **columns_list)
4803{
4804 DBUG_ENTER("JOIN::prepare_result");
4805
4806 error= 0;
4807 /* Create result tables for materialized views. */
4808 if (!zero_result_cause &&
4809 select_lex->handle_derived(thd->lex, DT_CREATE))
4810 goto err;
4811
4812 if (result->prepare2(this))
4813 goto err;
4814
4815 if ((select_lex->options & OPTION_SCHEMA_TABLE) &&
4816 get_schema_tables_result(this, PROCESSED_BY_JOIN_EXEC))
4817 goto err;
4818
4819 DBUG_RETURN(FALSE);
4820
4821err:
4822 error= 1;
4823 DBUG_RETURN(TRUE);
4824}
4825
4826
4827/**

Callers

nothing calls this directly

Calls 3

get_schema_tables_resultFunction · 0.85
handle_derivedMethod · 0.45
prepare2Method · 0.45

Tested by

no test coverage detected