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:
@ -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;
|
||||
|
Reference in New Issue
Block a user