Skip to content

[BUG] JSQLParser Version 4.5: RDBMS : "Encountered unexpected token: "SELECT" <K_SELECT> at line 11, column 1." #1798

Closed
@paolinho91

Description

@paolinho91

Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram

Failing SQL Feature:

  • Brief description of the failing SQL feature: method TablesNamesFinder.getTableList(statement) failed with error in title:
    "Encountered unexpected token: "SELECT" <K_SELECT> at line 11, column 1"

SQL Example:

  • Simplified Query Example, focusing on the failing feature:
    SELECT C1, SUM(N) AS N FROM ( ( SELECT C1, SUM(N) AS N FROM T1 GROUP BY C1 ) UNION ALL SELECT C1, 0 AS N FROM T2 ) GROUP BY C1

Software Information:

  • JSqlParser version: 4.5
  • Database: Oracle

Tips:

Query is very bad but works on Oracle DB. Line 11 is the "UNION ALL" SQL command.

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