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
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 tblBut this query fails to parse:
SELECT (col IS NULL) FROM tblThe same happens with other conditions such as
SELECT (a=b)...and more complex conditions with AND/OR operators.System