1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-14787 CREATE does not allow tables with versioning columns only, but ALTER does

This commit is contained in:
Eugene Kosov
2018-01-03 15:51:23 +03:00
committed by GitHub
parent b8b5d8d87d
commit dbf21ff396
3 changed files with 18 additions and 0 deletions

View File

@ -377,6 +377,12 @@ create or replace table t (c text) engine=innodb with system versioning;
show create table t;
alter table t add fulltext key (c);
create or replace table t (a int) with system versioning;
--error ER_VERS_TABLE_MUST_HAVE_COLUMNS
alter table t drop column a;
--error ER_CANT_DROP_FIELD_OR_KEY
alter table t drop column a, drop column a;
drop database test;
create database test;