[MCOL-5444] comment after check not possible Created: 2023-03-07  Updated: 2023-07-01

Status: Open
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: None
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Burner Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: crash
Environment:

Windows, docker container (mariadb:latest)



 Description   

this is not possible, Error message
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'comment 'not possible', id bigint not null, primary key (id) ...' at line 3

{{create table test (
value1 integer not null comment 'value 1',
value2 integer not null check (value2<=2) comment 'not possible',
id bigint not null,
primary key (id)
) engine=InnoDB}}

Remove comment after check, syntax is ok and work

{{create table test (
value1 integer not null comment 'value 1',
value2 integer not null check (value2<=2),
id bigint not null,
primary key (id)
) engine=InnoDB}}


Generated at Thu Feb 08 02:57:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.