1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Added test case for MDEV-13007 ALTER .. ENGINE on temporary sequence may go wrong

Looks like the bug was fixed some time ago (at least I can't repeat it).
I added the test case just have this case tested properly.
This commit is contained in:
Monty
2018-05-07 16:39:53 +03:00
parent d405bee058
commit bd09c5ca86
2 changed files with 42 additions and 0 deletions

View File

@ -23,3 +23,21 @@ drop temporary sequence s1;
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 #
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;