mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
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
This commit is contained in:
committed by
Sergei Golubchik
parent
23a7693a68
commit
8dffaaef72
21
mysql-test/suite/innodb/r/instant_auto_inc.result
Normal file
21
mysql-test/suite/innodb/r/instant_auto_inc.result
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t check status OK
|
||||
insert into t (a) values (2);
|
||||
alter table t modify column id int, algorithm=instant;
|
||||
check table t;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t check status OK
|
||||
insert into t (id, a) values (3, 3);
|
||||
select * from t;
|
||||
id a
|
||||
1 1
|
||||
2 2
|
||||
3 3
|
||||
check table t;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t check status OK
|
||||
drop table t;
|
||||
Reference in New Issue
Block a user