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