1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-11582 InnoDB: Failing assertion: !((field)->vcol_info && !(field)->stored_in_db())

change the parser not to allow SERIAL as a normal data type.
make a special rule for it, where it could be used for define
fields, but not generated fields, not return type of a stored function, etc.
This commit is contained in:
Sergei Golubchik
2017-02-09 12:06:15 +01:00
parent ca503e830b
commit 1afb11074e
3 changed files with 78 additions and 16 deletions

View File

@ -1321,3 +1321,23 @@ UNION
SELECT 1;
DROP TABLE t1;
#
# MDEV-11582 InnoDB: Failing assertion: !((field)->vcol_info && !(field)->stored_in_db())
#
--error ER_PARSE_ERROR
create table t1 (a serial null);
--error ER_PARSE_ERROR
create table t1 (a serial auto_increment);
--error ER_PARSE_ERROR
create table t1 (a serial serial default value);
--error ER_PARSE_ERROR
create table t1 (a serial collate binary);
--error ER_PARSE_ERROR
create table t1 (i int, vc serial as (i));
--error ER_PARSE_ERROR
create function fs() returns serial return 1;
create table t1 ( id serial );
show create table t1;
drop table t1;