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

COMMENT statements fail to parse #98

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

COMMENT statements fail to parse #98

valeneiko opened this issue Jun 29, 2022 · 0 comments

Comments

@valeneiko
Copy link

Parsing:

COMMENT ON FUNCTION foobar IS 'my comment';

Fails with:

Error: Syntax error at line 1 col 21:

  COMMENT ON FUNCTION foobar
                      ^
Unexpected word token: "foobar". I did not expect any more input. Here is the state of my parse table:

    kw_materialized  %word  
    comment_what_nm$subexpression$1  %word  
    kw_column  %word  

    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 COMMENT statements fail to parse COMMENT statements 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