mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-13005: Fixing bugs in SEQUENCE, part 3, 4/5
Task 4 and 5: Already fixed when I started working on bug. Task 4 correctly gives syntax error ('(' and ')' are not part of create sequence syntax). Task 5 also gives correct error because s1 is table not sequence. Fails with ER_NOT_SEQUENCE2
This commit is contained in:
@ -533,3 +533,15 @@ CREATE SEQUENCE x START WITH 1 INCREMENT BY 123456789012345678;
|
||||
--echo # Task 3:
|
||||
--error ER_SEQUENCE_INVALID_DATA
|
||||
CREATE SEQUENCE seq1 START WITH 1 cache -1;
|
||||
|
||||
--echo # Task 4:
|
||||
CREATE TEMPORARY TABLE s1 (s1 INT);
|
||||
--error ER_NOT_SEQUENCE2
|
||||
DROP TEMPORARY SEQUENCE s1;
|
||||
DROP TEMPORARY TABLE s1;
|
||||
|
||||
--echo # Task 5:
|
||||
CREATE TEMPORARY TABLE s1 (s1 INT);
|
||||
--error ER_PARSE_ERROR
|
||||
CREATE TEMPORARY SEQUENCE s1 (s1 INT);
|
||||
DROP TEMPORARY TABLE s1;
|
||||
|
Reference in New Issue
Block a user