Skip to content

Parsing fails for conditions with brackets in SELECT clause #1194

@tomershay

Description

@tomershay

Describe the bug
The parser fails to parse conditions as select items, when they have brackets around them.

To Reproduce
Steps to reproduce the behavior:
The following query is parsed ok:
SELECT col IS NULL FROM tbl
But this query fails to parse:
SELECT (col IS NULL) FROM tbl

The same happens with other conditions such as SELECT (a=b)... and more complex conditions with AND/OR operators.

System

  • MySQL / PostgreSQL
  • JSqlParser version: latest master

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