1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +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

@@ -28,3 +28,17 @@ DROP DATABASE db1;
#
# End of 10.6 tests
#
#
# MDEV-30796 Auto_increment values not updated after bulk
# insert operation
#
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);
# restart
INSERT INTO t1(f2) VALUES(5);
SELECT max(f1) FROM t1;
max(f1)
26
DROP TABLE t1;
# End of 10.9 tests