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