summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-10-29 13:03:08 +0100
committerSergei Golubchik <serg@mariadb.org>2020-10-29 13:03:08 +0100
commit0697d75cd052e809b05cc3e812f5e48209c04b4c (patch)
tree16524035d92e3d78dc27db00dbc30198aa84db78 /sql/sql_update.cc
parentf6549e95448e5cce52336361f5a59d1edcdac46a (diff)
parentc05e571e7d53ba11a3422490cff0d93e6691ea62 (diff)
downloadmariadb-git-10.5-merge.tar.gz
Merge commit 'c05e571e7d53ba11a3422490cff0d93e6691ea62' into HEAD10.5-merge
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 2d360849928..104061da059 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -419,6 +419,14 @@ int mysql_update(THD *thd,
DBUG_PRINT("info", ("Switch to multi-update"));
/* pass counter value */
thd->lex->table_count= table_count;
+ if (thd->lex->period_conditions.is_set())
+ {
+ my_error(ER_NOT_SUPPORTED_YET, MYF(0),
+ "updating and querying the same temporal periods table");
+
+ DBUG_RETURN(1);
+ }
+
/* convert to multiupdate */
DBUG_RETURN(2);
}