1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-25576: The statement EXPLAIN running as regular statement and as prepared statement produces different results for UPDATE with subquery

10.6 cleanup
This commit is contained in:
Dmitry Shulga
2021-05-05 17:56:12 +07:00
committed by Sergei Golubchik
parent f536974b73
commit 5478ca779a
5 changed files with 15 additions and 19 deletions

View File

@ -366,7 +366,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
query_plan.select_lex= thd->lex->first_select_lex();
query_plan.table= table;
promote_select_describe_flag_if_needed(thd->lex);
thd->lex->promote_select_describe_flag_if_needed();
if (mysql_prepare_delete(thd, table_list, &conds, &delete_while_scanning))
DBUG_RETURN(TRUE);