Skip to content

Commit 8df3524

Browse files
committed
MDEV-37345 temporary table, ALTER, recreate sequence
Test case only. The bug is fixed by cherry-pick of 2d5db53 "Simplify NEXTVAL(sequence) when used with DEFAULT"
1 parent 72341bc commit 8df3524

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

mysql-test/suite/sql_sequence/other.result

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,4 +410,10 @@ end $
410410
insert into t2 values ();
411411
drop table t1, t2, s;
412412
drop procedure p;
413+
create sequence s;
414+
create temporary table t (f int);
415+
alter table t modify f int default(nextval(s));
416+
create or replace sequence s;
417+
insert into t values (default);
418+
drop sequence s;
413419
# End of 10.11 tests

mysql-test/suite/sql_sequence/other.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,4 +448,12 @@ insert into t2 values ();
448448
drop table t1, t2, s;
449449
drop procedure p;
450450

451+
# another one, temporary table, ALTER, recreate sequence
452+
create sequence s;
453+
create temporary table t (f int);
454+
alter table t modify f int default(nextval(s));
455+
create or replace sequence s;
456+
insert into t values (default);
457+
drop sequence s;
458+
451459
--echo # End of 10.11 tests

0 commit comments

Comments
 (0)