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

Method optimize

sql/sql_tvc.cc:401–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399*/
400
401bool table_value_constr::optimize(THD *thd)
402{
403 create_explain_query_if_not_exists(thd->lex, thd->mem_root);
404 have_query_plan= QEP_AVAILABLE;
405
406 if (select_lex->select_number != FAKE_SELECT_LEX_ID &&
407 have_query_plan != QEP_NOT_PRESENT_YET &&
408 thd->lex->explain && // for "SET" command in SPs.
409 (!thd->lex->explain->get_select(select_lex->select_number)))
410 {
411 if (save_explain_data_intern(thd, thd->lex->explain))
412 return true;
413 }
414
415 if (select_lex->optimize_unflattened_subqueries(true))
416 return true;
417
418 return false;
419}
420
421
422/**

Callers

nothing calls this directly

Calls 3

get_selectMethod · 0.45

Tested by

no test coverage detected