Commit f67f8fd0 authored by Sergey Petrunya's avatar Sergey Petrunya

MDEV-3798: EXPLAIN UPDATE/DELETE

- Fix EXPLAIN INSERT DELAYED ... : do call end_delayed_insert().
parent 3e8f7c85
...@@ -820,7 +820,7 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list, ...@@ -820,7 +820,7 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list,
if (thd->lex->describe) if (thd->lex->describe)
{ {
retval= thd->lex->explain->send_explain(thd); retval= thd->lex->explain->send_explain(thd);
goto free_and_exit; goto abort;
} }
/* /*
...@@ -1177,7 +1177,6 @@ abort: ...@@ -1177,7 +1177,6 @@ abort:
if (table != NULL) if (table != NULL)
table->file->ha_release_auto_increment(); table->file->ha_release_auto_increment();
free_and_exit:
if (!joins_freed) if (!joins_freed)
free_underlaid_joins(thd, &thd->lex->select_lex); free_underlaid_joins(thd, &thd->lex->select_lex);
thd->abort_on_warning= 0; thd->abort_on_warning= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment