1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

[SHOW] EXPLAIN UPDATE/DELETE, code reordering

- Add further details, the goal is to pass the testsuite
- SJM-nests are not printed correctly yet.
This commit is contained in:
Sergey Petrunya
2013-06-17 19:39:55 +04:00
parent 03691a7771
commit d97ca5f56c
4 changed files with 93 additions and 28 deletions

View File

@ -4814,7 +4814,12 @@ static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables)
thd->lex->query_plan_footprint= new QPF_query;
res= mysql_explain_union(thd, &thd->lex->unit, result);
thd->lex->query_plan_footprint->print_explain(result, thd->lex->describe);
if (!res)
{
thd->lex->query_plan_footprint->print_explain(result, thd->lex->describe);
}
delete thd->lex->query_plan_footprint;
thd->lex->query_plan_footprint= NULL;
//psergey-todo: here, produce the EXPLAIN output.
// mysql_explain_union() itself is only responsible for calling