1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-24545 Sequence created by one connection remains invisible to another

row_merge_is_index_usable(): Allow access to any SEQUENCE, even if it was
created after the read view. SQL sequences are no-rollback tables with no
history at all.
This commit is contained in:
Marko Mäkelä
2021-04-27 08:44:28 +03:00
parent 0785771e57
commit 29b2f3dbb5
3 changed files with 33 additions and 1 deletions

View File

@ -56,3 +56,22 @@ FLUSH TABLES;
--connection default
DROP TABLE s1,s2;
#
# MDEV-24545 Sequence created by one connection remains invisible to another
#
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
START TRANSACTION WITH CONSISTENT SNAPSHOT;
--connect (con1,localhost,root,,test)
CREATE SEQUENCE s1 ENGINE=InnoDB;
FLUSH TABLES;
--disconnect con1
--connection default
SELECT NEXTVAL(s1);
COMMIT;
# Cleanup
DROP TABLE t1;
DROP SEQUENCE s1;