-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Describe the bug
Unable to parse SELECT 0 IS NULL
To Reproduce
Steps to reproduce the behavior:
SELECT 0 IS NULL
orSELECT 1 IS NOT NULL
orSELECT 2 IN (0, 1)
- Parsing this SQL using JSqlParser with this statements
- Exception:
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "IS" at line 1, column 9. Was expecting one of: ...
Expected behavior
Should be able to parse statement.
System
- Database: MySQL (returns
0
) and PostgreSQL (returnsfalse
) - Java Version: 8
- JSqlParser version: 3.1, 3.2-SNAPSHOT (with latest
master
)
Metadata
Metadata
Assignees
Labels
No labels