| 399 | */ |
| 400 | |
| 401 | bool 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 | /** |
nothing calls this directly
no test coverage detected