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

ALTER statements with USING expression fail to parse #99

Open
valeneiko opened this issue Jun 29, 2022 · 0 comments
Open

ALTER statements with USING expression fail to parse #99

valeneiko opened this issue Jun 29, 2022 · 0 comments

Comments

@valeneiko
Copy link

Parsing:

ALTER TABLE
  foo ALTER bar TYPE opt USING bar::opt;

Fails with:

Error: Syntax error at line 2 col 26:

    foo ALTER bar TYPE opt USING
                           ^
Unexpected kw_using token: "using". Instead, I was expecting to see one of the following:

    - A "dot" token
    - A "lparen" token
    - A "kw_array" token
    - A "lbracket" token
    - A "comma" token
    - A "semicolon" token


    at Parser.feed (/src/node_modules/nearley/lib/nearley.js:343:27)
    at _parse (/src/node_modules/pgsql-ast-parser/src/parser.ts:110:16)
    at doParse (/src/node_modules/pgsql-ast-parser/src/parser.ts:57:27)
    at Object.parse (/src/node_modules/pgsql-ast-parser/src/parser.ts:60:11)
@valeneiko valeneiko changed the title ALTER statements with USING expression fail to parse ALTER statements with USING expression fail to parse Jun 29, 2022
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