Describe the bug
Node SQL Parser is unable to astify() a valid PostgreSQL statement that uses the :: cast operator.
Database Engine
PostgreSQL
To Reproduce
-the SQL that be parsed
SELECT a FROM b WHERE a::TEXT ILIKE '%x%'
-the node-sql-parser version
5.2.0
-the node version
21.7.2
Expected behavior
Parsing succeeds without a SyntaxError, just like it does when the cast is in parenthesis:
SELECT a FROM b WHERE (a::TEXT) ILIKE '%x%'
Describe the bug Node SQL Parser is unable to
astify()
a valid PostgreSQL statement that uses the::
cast operator.Database Engine PostgreSQL
To Reproduce -the SQL that be parsed
SELECT a FROM b WHERE a::TEXT ILIKE '%x%'
-the node-sql-parser version
5.2.0
-the node version
21.7.2
Expected behavior Parsing succeeds without a SyntaxError, just like it does when the cast is in parenthesis:
SELECT a FROM b WHERE (a::TEXT) ILIKE '%x%'