grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

PostgreSql: table check constraint is parsed as a column.

Open victor-wiki opened this issue 1 year ago • 0 comments

CREATE TABLE test(
NAME character varying NOT NULL check (length(name)>0),
constraint ck_name check (length(name)>0)
)

the constraint ck_name check (length(name)>0) is parsed as ColumnDefContext, actually it's TableconstraintContext.

victor-wiki avatar Dec 08 '22 00:12 victor-wiki