Skip to content

[BUG] JSQLParser Version 4.6 - PostgreSQL: "::" notation not supported in nextval #1789

Closed
@ndepomereu

Description

@ndepomereu

Hi,

With 4.6 I try to parse a PostgreSQL schema, it fails on this kind of table:

Statement in Error No 2: 
CREATE TABLE public.actor (
    actor_id integer DEFAULT nextval('public.actor_actor_id_seq'::regclass) NOT NULL,
    first_name character varying(45) NOT NULL,
    last_name character varying(45) NOT NULL,
    last_update timestamp without time zone DEFAULT now() NOT NULL
)
Exception of Error No 2: 
Encountered unexpected token: "::" "::"

Seems the :: notation is not suported in nextval.

Best,
N.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions