summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sql_sequence/temporary.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/sql_sequence/temporary.result')
-rw-r--r--mysql-test/suite/sql_sequence/temporary.result24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/suite/sql_sequence/temporary.result b/mysql-test/suite/sql_sequence/temporary.result
index 69463667210..b5c70fd3a50 100644
--- a/mysql-test/suite/sql_sequence/temporary.result
+++ b/mysql-test/suite/sql_sequence/temporary.result
@@ -17,3 +17,27 @@ 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;
+#
+# MDEV-13007 ALTER .. ENGINE on temporary sequence may go wrong
+#
+create temporary sequence s1 engine=aria;
+alter table s1 engine myisam;
+select nextval(s1);
+nextval(s1)
+1
+drop temporary sequence s1;
+create temporary sequence s1 engine=innodb;
+alter table s1 engine myisam;
+select nextval(s1);
+nextval(s1)
+1
+drop temporary sequence s1;
+create temporary sequence s1;
+alter table s1 engine innodb;
+select nextval(s1);
+nextval(s1)
+1
+select nextval(s1);
+nextval(s1)
+2
+drop temporary sequence s1;