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

Method execute_inner

sql/sql_select.cc:35045–35077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35043*/
35044
35045bool Sql_cmd_dml::execute_inner(THD *thd)
35046{
35047 SELECT_LEX_UNIT *unit = &lex->unit;
35048 SELECT_LEX *select_lex= unit->first_select();
35049 JOIN *join= select_lex->join;
35050
35051 // look for select_handler provided by engines
35052 select_lex->pushdown_select= find_single_select_handler(thd, select_lex);
35053
35054 if (join->optimize())
35055 goto err;
35056
35057 if (thd->lex->describe & DESCRIBE_EXTENDED)
35058 {
35059 join->conds_history= join->conds;
35060 join->having_history= (join->having?join->having:join->tmp_having);
35061 }
35062
35063 if (unlikely(thd->is_error()))
35064 goto err;
35065
35066 if (join->exec())
35067 goto err;
35068
35069 if (thd->lex->describe & DESCRIBE_EXTENDED)
35070 {
35071 select_lex->where= join->conds_history;
35072 select_lex->having= join->having_history;
35073 }
35074
35075err:
35076 return join->error;
35077}
35078
35079
35080/**

Callers

nothing calls this directly

Calls 5

first_selectMethod · 0.80
optimizeMethod · 0.45
is_errorMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected