Skip to content

Postgresql "ANALYZE table" not supported? #1579

Closed

Description

@d2a-raudenaerde

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);
        }

Activity

  1. wumpz commented on Jul 7, 2022

    @wumpz
    Member

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

  2. d2a-raudenaerde commented on Jul 8, 2022

    @d2a-raudenaerde
    ContributorAuthor

    Working on it :)

  3. added a commit that references this issue on Jul 8, 2022
    a01a097
  4. added a commit that references this issue on May 11, 2024
    e5c8a89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions