1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-30796 Auto_increment values not updated after bulk insert operation

- InnoDB fails to update the autoinc persistently after
bulk insert operation.

row_merge_bulk_t::write_to_index(): Update the autoinc value
persistently
This commit is contained in:
Thirunarayanan Balathandayuthapani
2023-07-26 15:52:12 +05:30
parent 864bbd4d09
commit 4700f2ac70
3 changed files with 30 additions and 0 deletions

View File

@ -41,3 +41,17 @@ DROP DATABASE db1;
--echo #
--echo # End of 10.6 tests
--echo #
--echo #
--echo # MDEV-30796 Auto_increment values not updated after bulk
--echo # insert operation
--echo #
CREATE TABLE t1(f1 INT NOT NULL AUTO_INCREMENT,
f2 INT NOT NULL, PRIMARY KEY(f1))ENGINE=InnoDB;
INSERT INTO t1 VALUES(1, 2), (25, 3), (2, 4);
--source include/restart_mysqld.inc
INSERT INTO t1(f2) VALUES(5);
SELECT max(f1) FROM t1;
DROP TABLE t1;
--echo # End of 10.9 tests