Skip to content

[BUG] JSQLParser 5.4 PostgreSQL treats the WITH and BY in CREATE SEQUENCE expressions as optional #2347

@mjog

Description

@mjog

Failing SQL Feature:

PostgreSQL treats the WITH in CREATE SEQUENCE name START WITH … expressions as optional. At least one SQL generator (Hibernate) is generating PostgreSQL-specific SQL when creating new sequences, without the WITH.

SQL Example:

CREATE SEQUENCE example_seq START 1 INCREMENT 1;

Software Information:

PostgreSQL 7.1 through to current (7.x did not support WITH at all, which is maybe why Hibernate is not including it)

JSqlParser version: 4.9 (this project still requires Java 8 for the moment, unfortunately)

However, JSqlParser 5.4-SNAPSHOT still requires it:

Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions