1
# embedded server ignores 'delayed', so skip this
4
drop table if exists t1;
8
# 44030: Error: (1500) Couldn't read the MAX(ID) autoinc value from
10
# This test requires a restart of the server
11
SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=1;
12
CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB;
13
INSERT INTO t1 VALUES (null);
14
INSERT INTO t1 VALUES (null);
15
ALTER TABLE t1 CHANGE c1 d1 INT NOT NULL AUTO_INCREMENT;
18
#-- source include/restart_mysqld.inc
19
# The MySQL and InnoDB data dictionaries should now be out of sync.
20
# The select should print message to the error log
22
# MySQL have made a change (http://lists.mysql.com/commits/75268) that no
23
# longer results in the two data dictionaries being out of sync. If they
24
# revert their changes then this check for ER_AUTOINC_READ_FAILED will need
25
# to be enabled. Also, see http://bugs.mysql.com/bug.php?id=47621.
26
#-- error ER_AUTOINC_READ_FAILED,1467
27
INSERT INTO t1 VALUES(null);
28
ALTER TABLE t1 AUTO_INCREMENT = 3;
30
INSERT INTO t1 VALUES(null);