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

Postgresql "ANALYZE table" not supported? #1579

Closed
d2a-raudenaerde opened this issue Jul 1, 2022 · 2 comments
Closed

Postgresql "ANALYZE table" not supported? #1579

d2a-raudenaerde opened this issue Jul 1, 2022 · 2 comments

Comments

@d2a-raudenaerde
Copy link
Contributor

I'm trying to parse a sql-script with multiple statements, and some statements are analyze sometable statements. These are not recognized by the parser?

See for the syntax:
https://www.postgresql.org/docs/current/sql-analyze.html

Simple test:

        CCJSqlParser parser = newParser("analyze table1");
        parser.withAllowComplexParsing(true);
        for (Statement st :parser.Statements().getStatements())
        {
            System.out.println(st);
        }
@wumpz
Copy link
Member

wumpz commented Jul 7, 2022

Thats right. JSqlParser does not know this. PRs are welcome.

@d2a-raudenaerde
Copy link
Contributor Author

Working on it :)

d2a-raudenaerde added a commit to d2a-raudenaerde/JSqlParser that referenced this issue Jul 8, 2022
@wumpz wumpz closed this as completed in e5c8a89 Jul 14, 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

2 participants