Skip to content

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

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.

Activity

  1. manticore-projects commented on May 16, 2023

    @manticore-projects
    Contributor

    Greetings, thank you for reporting.

    I will fix this today, since there is a similar issue already.
    Duplicate #1098
    Duplicate #1022

  2. added a commit that references this issue on May 16, 2023
  3. manticore-projects commented on May 16, 2023

    @manticore-projects
    Contributor

    Fixed via Commit d20c8e9 with PR #1778

    Cheers!

  4. added a commit that references this issue on May 16, 2023
  5. added a commit that references this issue on Jun 1, 2023
  6. added a commit that references this issue on Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions