summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-03-29 11:13:18 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-03-29 11:13:18 +0300
commitae6e214fd851a8a9d079494eec9903c89dd10fb2 (patch)
treeb206f873d02a5a2027671bb1cd900b77d1a3b820 /sql/sql_update.cc
parent97f237e66dc58a617b6293d6a2624378333e8065 (diff)
parent020e7d89ebdcded3355c82cec93e0abef2898258 (diff)
downloadmariadb-git-ae6e214fd851a8a9d079494eec9903c89dd10fb2.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 59adeea5fbf..a05e17eb82f 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -2288,6 +2288,11 @@ multi_update::initialize_tables(JOIN *join)
if (unlikely((thd->variables.option_bits & OPTION_SAFE_UPDATES) &&
error_if_full_join(join)))
DBUG_RETURN(1);
+ if (join->implicit_grouping)
+ {
+ my_error(ER_INVALID_GROUP_FUNC_USE, MYF(0));
+ DBUG_RETURN(1);
+ }
main_table=join->join_tab->table;
table_to_update= 0;