mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-13005: Fixing bugs in SEQUENCE, part 3, 1/5
Task 1: If table is added to list using option TL_OPTION_SEQUENCE (done when we have sequence functions) then then we are dealing with sequence instead of table. So global table list will have sequence set to true. This is used to check and give correct error message about unknown sequence instead of table doesn't exist.
This commit is contained in:
@ -119,8 +119,9 @@ create table t1 (a int);
|
||||
alter sequence t1 minvalue=100;
|
||||
drop table t1;
|
||||
|
||||
--error ER_UNKNOWN_SEQUENCES
|
||||
alter sequence if exists t1 minvalue=100;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
--error ER_UNKNOWN_SEQUENCES
|
||||
alter sequence t1 minvalue=100;
|
||||
|
||||
create sequence t1;
|
||||
|
Reference in New Issue
Block a user