diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:00:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:00:34 +0000 |
commit | 3f619478f796eddbba6e39502fe941b285dd97b1 (patch) | |
tree | e2c7b5777f728320e5b5542b6213fd3591ba51e2 /mysql-test/suite/sql_sequence/temporary.test | |
parent | Initial commit. (diff) | |
download | mariadb-upstream.tar.xz mariadb-upstream.zip |
Adding upstream version 1:10.11.6.upstream/1%10.11.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/suite/sql_sequence/temporary.test')
-rw-r--r-- | mysql-test/suite/sql_sequence/temporary.test | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/mysql-test/suite/sql_sequence/temporary.test b/mysql-test/suite/sql_sequence/temporary.test new file mode 100644 index 00000000..e57dc693 --- /dev/null +++ b/mysql-test/suite/sql_sequence/temporary.test @@ -0,0 +1,47 @@ +--source include/have_sequence.inc +--source include/have_innodb.inc + +# +# Test temporary sequences +# + +--echo # +--echo # Create +--echo # + +create temporary sequence s1 engine=innodb; +alter table s1 engine myisam; +--disable_ps2_protocol +select nextval(s1); +--enable_ps2_protocol +select * from s1; +drop temporary sequence s1; + +--echo # +--echo # MDEV-14762 Server crashes in MDL_ticket::has_stronger_or_equal_type +--echo # upon inserting into temporary sequence +--echo # + +CREATE TEMPORARY SEQUENCE s1 ENGINE=InnoDB; +INSERT INTO s1 VALUES (1, 1, 1000, 1, 1, 1, 1, 0); +DROP TEMPORARY SEQUENCE s1; + +--echo # +--echo # MDEV-13007 ALTER .. ENGINE on temporary sequence may go wrong +--echo # + +--disable_ps2_protocol +create temporary sequence s1 engine=aria; +alter table s1 engine myisam; +select nextval(s1); +drop temporary sequence s1; +create temporary sequence s1 engine=innodb; +alter table s1 engine myisam; +select nextval(s1); +drop temporary sequence s1; +create temporary sequence s1; +alter table s1 engine innodb; +select nextval(s1); +select nextval(s1); +drop temporary sequence s1; +--enable_ps2_protocol |