mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix a failure of innodb_plugin.innodb-autoinc-44030 now that
MySQL and InnoDB dictionaries do not get out of sync.
This commit is contained in:
@ -13,18 +13,18 @@ d1
|
|||||||
1
|
1
|
||||||
2
|
2
|
||||||
INSERT INTO t1 VALUES(null);
|
INSERT INTO t1 VALUES(null);
|
||||||
Got one of the listed errors
|
|
||||||
ALTER TABLE t1 AUTO_INCREMENT = 3;
|
ALTER TABLE t1 AUTO_INCREMENT = 3;
|
||||||
SHOW CREATE TABLE t1;
|
SHOW CREATE TABLE t1;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
t1 CREATE TABLE `t1` (
|
t1 CREATE TABLE `t1` (
|
||||||
`d1` int(11) NOT NULL AUTO_INCREMENT,
|
`d1` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
PRIMARY KEY (`d1`)
|
PRIMARY KEY (`d1`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1
|
||||||
INSERT INTO t1 VALUES(null);
|
INSERT INTO t1 VALUES(null);
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
d1
|
d1
|
||||||
1
|
1
|
||||||
2
|
2
|
||||||
3
|
3
|
||||||
|
4
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
@ -25,7 +25,7 @@ SELECT * FROM t1;
|
|||||||
# longer results in the two data dictionaries being out of sync. If they
|
# longer results in the two data dictionaries being out of sync. If they
|
||||||
# revert their changes then this check for ER_AUTOINC_READ_FAILED will need
|
# revert their changes then this check for ER_AUTOINC_READ_FAILED will need
|
||||||
# to be enabled. Also, see http://bugs.mysql.com/bug.php?id=47621.
|
# to be enabled. Also, see http://bugs.mysql.com/bug.php?id=47621.
|
||||||
-- error ER_AUTOINC_READ_FAILED,1467
|
# -- error ER_AUTOINC_READ_FAILED,1467
|
||||||
INSERT INTO t1 VALUES(null);
|
INSERT INTO t1 VALUES(null);
|
||||||
ALTER TABLE t1 AUTO_INCREMENT = 3;
|
ALTER TABLE t1 AUTO_INCREMENT = 3;
|
||||||
SHOW CREATE TABLE t1;
|
SHOW CREATE TABLE t1;
|
||||||
|
Reference in New Issue
Block a user