1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-13714 Value of SEQUENCE table option is ignored upon creation

CREATE TABLE ... sequence=0 and sequence=DEFAULT created sequence tables
when they should not.

Signed-off-by: Monty <monty@mariadb.org>
This commit is contained in:
Aleksey Midenkov
2017-10-22 12:26:32 +03:00
committed by Monty
parent f64cff9206
commit 7447b4ce37
4 changed files with 88 additions and 2 deletions

View File

@ -375,3 +375,37 @@ drop sequence t1;
--error ER_UNKNOWN_STORAGE_ENGINE
create table t1 (a int) engine=sql_sequence;
--echo #
--echo # MDEV-13714 SEQUENCE option fix
--echo #
create or replace table s (
`next_value` bigint(21) not null,
`min_value` bigint(21) not null,
`max_value` bigint(21) not null,
`start` bigint(21) not null,
`increment` bigint(21) not null,
`cache` bigint(21) not null,
`cycle` tinyint(1) unsigned not null,
`round` bigint(21) not null)
sequence=0;
create or replace table s2 (
`next_value` bigint(21) not null,
`min_value` bigint(21) not null,
`max_value` bigint(21) not null,
`start` bigint(21) not null,
`increment` bigint(21) not null,
`cache` bigint(21) not null,
`cycle` tinyint(1) unsigned not null,
`round` bigint(21) not null)
sequence=default;
show create table s;
show create table s2;
--error ER_NOT_SEQUENCE
show create sequence s;
--error ER_NOT_SEQUENCE
show create sequence s2;
drop table s,s2;