diff options
Diffstat (limited to 'mysql-test/main/alter_table_autoinc-5574.test')
-rw-r--r-- | mysql-test/main/alter_table_autoinc-5574.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/main/alter_table_autoinc-5574.test b/mysql-test/main/alter_table_autoinc-5574.test new file mode 100644 index 00000000..95c2b8d8 --- /dev/null +++ b/mysql-test/main/alter_table_autoinc-5574.test @@ -0,0 +1,12 @@ +# +# MDEV-5574 Set AUTO_INCREMENT below max value of column +# +--source include/have_innodb.inc +create table t1(a int(10)unsigned not null auto_increment primary key, +b varchar(255) not null) engine=innodb default charset=utf8; +insert into t1 values(1,'aaa'),(2,'bbb'); +alter table t1 auto_increment=1; +insert into t1 values(NULL, 'ccc'); +select * from t1; +drop table t1; + |