Skip to content

[BUG] [5.2]: 'grant select on da380_now to public;' failing #2230

Closed
@os10000

Description

@os10000

Many thanks to you all for building & maintaining JSQLParser!!!

Failing SQL Feature:

  • the grammar defines 'UsersList' containing n 'RelObjectName'
  • 'RelObjectName' in grammar diagram 5.2 does not explicitly include 'public'
  • 'RelObjectName' allows 'RelObjectNameWithoutValue'
  • 'RelObjectNameWithoutValue' allows 'S_IDENTIFIER' -- that would work
  • yet, it naturally compares it to tokens first and rejects it

SQL Example:

  • 'grant select on da380_now to public;'
  • net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "public" "PUBLIC"
    at line 1, column 30

Software Information:

  • compiled with JSqlParser version 5.1
    com.github.jsqlparserjsqlparser5.1
  • postgresql does accept the statement

alternative attempt (add 'table' after 'on'):

  • 'grant select on table nexpay_2_faa_tbl to public;'
  • Encountered unexpected token: "nexpay_2_faa_v" <S_IDENTIFIER> at line 1, column 23

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