Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to handle RESTART in ALTER SEQUENCE #1405

Closed
arcuri82 opened this issue Nov 5, 2021 · 0 comments
Closed

Failed to handle RESTART in ALTER SEQUENCE #1405

arcuri82 opened this issue Nov 5, 2021 · 0 comments

Comments

@arcuri82
Copy link
Contributor

arcuri82 commented Nov 5, 2021

Hi,
RESTART does not seem to be supported. For example:

ALTER SEQUENCE SYSTEM_SEQUENCE_40560F88_80C4_4F3B_BDAA_D18CC8D5C5AA RESTART WITH 1

CCJSqlParserUtil.parse(sql) fails with

Encountered unexpected token: "RESTART" <S_IDENTIFIER>
    at line 1, column 69.

Was expecting one of:

    ";"
    "CACHE"
    "CYCLE"
    "GLOBAL"
    "INCREMENT"
    "KEEP"
    "MAXVALUE"
    "MINVALUE"
    "NOCACHE"
    "NOCYCLE"
    "NOKEEP"
    "NOMAXVALUE"
    "NOMINVALUE"
    "NOORDER"
    "ORDER"
    "SESSION"
    "START"

however, RESTART is a valid option, at least for H2 and Postgres

Using JSqlParser 4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant