mariadb/mysql-test/suite/innodb/t/instant_auto_inc.test
Eugene Kosov 8dffaaef72 MDEV-12836 Avoid table rebuild when removing of auto_increment settings
Field::is_equal(): treat old type and new one without AUTO_INCREMENT as equal

Closes #1208
2019-03-20 19:18:21 +01:00

13 lines
377 B
Text

--source include/have_innodb.inc
create table t(id int primary key, a int) engine=InnoDB;
insert into t (id, a) values (1, 1);
alter table t modify column id int auto_increment;
check table t;
insert into t (a) values (2);
alter table t modify column id int, algorithm=instant;
check table t;
insert into t (id, a) values (3, 3);
select * from t;
check table t;
drop table t;