mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
MDEV-3798: EXPLAIN UPDATE/DELETE
- Add support for EXPLAIN INSERT.
This commit is contained in:
parent
69393db3d1
commit
98a8642fe8
11 changed files with 201 additions and 62 deletions
|
|
@ -680,20 +680,8 @@ cleanup:
|
|||
/* Special exits */
|
||||
exit_without_my_ok:
|
||||
query_plan.save_explain_data(thd->lex->explain);
|
||||
int err2= thd->lex->explain->send_explain(thd);
|
||||
|
||||
select_send *result2;
|
||||
if (!(result2= new select_send()))
|
||||
return 1; /* purecov: inspected */
|
||||
List<Item> dummy; /* note: looked in 5.6 and they too use a dummy list like this */
|
||||
result2->prepare(dummy, &thd->lex->unit);
|
||||
thd->send_explain_fields(result2);
|
||||
int err2= thd->lex->explain->print_explain(result2, thd->lex->describe);
|
||||
|
||||
if (err2)
|
||||
result2->abort_result_set();
|
||||
else
|
||||
result2->send_eof();
|
||||
|
||||
delete select;
|
||||
free_underlaid_joins(thd, select_lex);
|
||||
//table->set_keyread(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue