Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.2.4
-
None
Description
--source include/have_innodb.inc
|
|
create table t1 (pk int auto_increment primary key, i int, unique (i)) engine=InnoDB; |
insert into t1 (i) values (1),(2),(3); |
insert ignore into t1 (pk, i) values (100,1); |
--echo #
|
--echo # Table before restart
|
show create table t1; |
--source include/restart_mysqld.inc
|
--echo #
|
--echo # Table after restart
|
show create table t1; |
|
drop table t1; |
# Table before restart |
show create table t1; |
Table Create Table |
t1 CREATE TABLE `t1` ( |
`pk` int(11) NOT NULL AUTO_INCREMENT, |
`i` int(11) DEFAULT NULL, |
PRIMARY KEY (`pk`), |
UNIQUE KEY `i` (`i`) |
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 |
#
|
# Table after restart |
show create table t1; |
Table Create Table |
t1 CREATE TABLE `t1` ( |
`pk` int(11) NOT NULL AUTO_INCREMENT, |
`i` int(11) DEFAULT NULL, |
PRIMARY KEY (`pk`), |
UNIQUE KEY `i` (`i`) |
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=latin1 |
Attachments
Issue Links
- relates to
-
MDEV-6076 Persistent AUTO_INCREMENT for InnoDB
- Closed
-
MDEV-20892 AUTO_INCREMENT is set lower than the max value of the primary_key
- Closed