1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-3798: EXPLAIN UPDATE/DELETE

- Add support for EXPLAIN INSERT.
This commit is contained in:
Sergey Petrunya
2013-10-07 17:29:51 +04:00
parent 69393db3d1
commit 98a8642fe8
11 changed files with 201 additions and 62 deletions

View File

@@ -3245,14 +3245,7 @@ end_with_restore_list:
}
if (!res && explain)
{
select_result *result= new select_send();
LEX *lex= thd->lex;
if (thd->send_explain_fields(result) ||
lex->explain->print_explain(result, lex->describe) ||
result->send_eof())
res= 1;
}
res= thd->lex->explain->send_explain(thd);
/* revert changes for SP */
MYSQL_INSERT_SELECT_DONE(res, (ulong) thd->get_row_count_func());
@@ -3341,14 +3334,7 @@ end_with_restore_list:
else
{
if (explain)
{
select_result *result= new select_send();
LEX *lex= thd->lex;
if (thd->send_explain_fields(result) ||
lex->explain->print_explain(result, lex->describe) ||
result->send_eof())
res= 1;
}
res= thd->lex->explain->send_explain(thd);
}
delete result;
}