diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-10-07 20:25:55 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-10-14 10:29:31 +0200 |
commit | 57a09a72a31331c2bcbf57369fc396f0a96cfb09 (patch) | |
tree | 15b592c46c466e087f22e68c05b403f6442bb06b /sql/sql_delete.cc | |
parent | 721a9df75137bd1a41dc1547d5c615781754aec6 (diff) | |
download | mariadb-git-57a09a72a31331c2bcbf57369fc396f0a96cfb09.tar.gz |
cleanup st_select_lex_unit::explainable
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index d0c9167a484..6a58dab9394 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -199,23 +199,12 @@ bool Update_plan::save_explain_data_intern(MEM_ROOT *mem_root, &explain->mrr_type); } - bool skip= updating_a_view; - /* Save subquery children */ for (SELECT_LEX_UNIT *unit= select_lex->first_inner_unit(); unit; unit= unit->next_unit()) { - if (skip) - { - skip= false; - continue; - } - /* - Display subqueries only if they are not parts of eliminated WHERE/ON - clauses. - */ - if (!(unit->item && unit->item->eliminated)) + if (unit->explainable()) explain->add_child(unit->first_select()->select_number); } return 0; @@ -395,7 +384,6 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, table->map=1; query_plan.select_lex= thd->lex->first_select_lex(); query_plan.table= table; - query_plan.updating_a_view= MY_TEST(table_list->view); if (mysql_prepare_delete(thd, table_list, select_lex->with_wild, select_lex->item_list, &conds, |