-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
Description
Description
Add support for PostgreSQL's double-colon type casting operator.
Example SQL
SELECT '123'::integer;
SELECT '2023-01-01'::date;
SELECT column_name::text FROM table_name;
SELECT (price * 1.1)::numeric(10,2) FROM products;Current Behavior
The :: operator is not recognized as a type cast.
Expected Behavior
Parser should recognize :: as PostgreSQL's type casting operator and create appropriate AST nodes.
Priority
Medium - commonly used PostgreSQL syntax
Implementation Notes
- Add
TokenTypeDoubleColontoken type - Create
TypeCastExpressionAST node withExpressionandTargetTypefields - Handle parameterized types like
numeric(10,2)andvarchar(255)