mirror of
https://github.com/MariaDB/server.git
synced 2025-12-28 08:10:14 +00:00
MDEV-37345 temporary table, ALTER, recreate sequence
Test case only. The bug is fixed by cherry-pick of 2d5db53584
"Simplify NEXTVAL(sequence) when used with DEFAULT"
This commit is contained in:
parent
72341bc255
commit
8df3524cf3
@ -410,4 +410,10 @@ end $
|
||||
insert into t2 values ();
|
||||
drop table t1, t2, s;
|
||||
drop procedure p;
|
||||
create sequence s;
|
||||
create temporary table t (f int);
|
||||
alter table t modify f int default(nextval(s));
|
||||
create or replace sequence s;
|
||||
insert into t values (default);
|
||||
drop sequence s;
|
||||
# End of 10.11 tests
|
||||
|
||||
@ -448,4 +448,12 @@ insert into t2 values ();
|
||||
drop table t1, t2, s;
|
||||
drop procedure p;
|
||||
|
||||
# another one, temporary table, ALTER, recreate sequence
|
||||
create sequence s;
|
||||
create temporary table t (f int);
|
||||
alter table t modify f int default(nextval(s));
|
||||
create or replace sequence s;
|
||||
insert into t values (default);
|
||||
drop sequence s;
|
||||
|
||||
--echo # End of 10.11 tests
|
||||
|
||||
Loading…
Reference in New Issue
Block a user