summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 7072a22d679..b3f957b6737 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -7049,6 +7049,7 @@ bool Vers_parse_info::fix_alter_info(THD *thd, Alter_info *alter_info,
if (alter_info->flags & ALTER_DROP_SYSTEM_VERSIONING)
{
+ // Prohibit changing field versioning, when removing table versioning
if (!share->versioned || create_info->versioned())
{
my_error(ER_VERS_NOT_VERSIONED, MYF(0), table_name);