1
0
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:
Sergei Golubchik
2018-02-08 23:03:35 +01:00
parent f3a49e7020
commit c847089e6e
3 changed files with 12 additions and 0 deletions

View File

@ -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
{
/*