summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2023-04-14 13:08:28 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2023-04-14 13:08:28 +0300
commit656c2e18b1e9ea5d0314745f3988d126eedbc22a (patch)
treeb3cd0336212305b3c70d751dfef231fca9335676 /sql/sql_delete.cc
parent17caff92b51af08928911feb5c4ae23e4448575d (diff)
parenta009280e60078f4a9bc9bf8d6475610f98f82824 (diff)
downloadmariadb-git-656c2e18b1e9ea5d0314745f3988d126eedbc22a.tar.gz
Merge 10.10 into 10.11
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index 9236ced8fe3..186ab64f5d3 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -1096,6 +1096,8 @@ int mysql_prepare_delete(THD *thd, TABLE_LIST *table_list, Item **conds,
DBUG_RETURN(TRUE);
select_lex->fix_prepare_information(thd, conds, &fake_conds);
+ if (!thd->lex->upd_del_where)
+ thd->lex->upd_del_where= *conds;
DBUG_RETURN(FALSE);
}