diff options
| author | Marko Mäkelä <marko.makela@mariadb.com> | 2023-04-14 11:32:36 +0300 |
|---|---|---|
| committer | Marko Mäkelä <marko.makela@mariadb.com> | 2023-04-14 11:32:36 +0300 |
| commit | 44281b88f3ce04e85ba49ba1f557f6cca328a4e7 (patch) | |
| tree | 4daba52cd11f3b52e96af3e0887eee7bc7d4e034 /sql/sql_update.cc | |
| parent | 55e78ebf4136ed7bf78b45963f53e503201a59bb (diff) | |
| parent | 10147af9e5b25739bada32c6eb4f204d5f2985a1 (diff) | |
| download | mariadb-git-44281b88f3ce04e85ba49ba1f557f6cca328a4e7.tar.gz | |
Merge 10.8 into 10.9
Diffstat (limited to 'sql/sql_update.cc')
| -rw-r--r-- | sql/sql_update.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 033f98fd719..68de349a78f 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -1391,7 +1391,8 @@ produce_explain_and_leave: goto err; emit_explain_and_leave: - int err2= thd->lex->explain->send_explain(thd); + bool extended= thd->lex->describe & DESCRIBE_EXTENDED; + int err2= thd->lex->explain->send_explain(thd, extended); delete select; free_underlaid_joins(thd, select_lex); @@ -1465,6 +1466,8 @@ bool mysql_prepare_update(THD *thd, TABLE_LIST *table_list, select_lex->fix_prepare_information(thd, conds, &fake_conds); + if (!thd->lex->upd_del_where) + thd->lex->upd_del_where= *conds; DBUG_RETURN(FALSE); } @@ -1992,7 +1995,10 @@ bool mysql_multi_update(THD *thd, TABLE_LIST *table_list, List<Item> *fields, else { if (thd->lex->describe || thd->lex->analyze_stmt) - res= thd->lex->explain->send_explain(thd); + { + bool extended= thd->lex->describe & DESCRIBE_EXTENDED; + res= thd->lex->explain->send_explain(thd, extended); + } } thd->abort_on_warning= 0; DBUG_RETURN(res); |
