mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Cannot DROP VERSIONING without dropping all visible AS ROW fields
This commit is contained in:
@ -8009,6 +8009,13 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
|
||||
def_it.remove();
|
||||
}
|
||||
}
|
||||
else if (alter_info->flags & Alter_info::ALTER_DROP_SYSTEM_VERSIONING &&
|
||||
field->flags & VERS_SYSTEM_FIELD &&
|
||||
field->invisible < INVISIBLE_SYSTEM)
|
||||
{
|
||||
my_error(ER_VERS_SYS_FIELD_EXISTS, MYF(0), field->field_name.str);
|
||||
goto err;
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user