Skip to content

Conversation

@pyramation
Copy link
Collaborator

No description provided.

…cast syntax

- Fixes operator precedence issues with double casts like CAST(...AS text)::date
- Wraps FuncCall arguments (e.g., AT TIME ZONE expressions) in parentheses
- Prevents :: operator from binding to wrong operand
- Refactored empty if block to pass lint checks
- Updated pg-catalog snapshot to reflect correct parenthesization

This is a minimal fix with only 13 lines changed in the TypeCast function.

Co-Authored-By: Dan Lynch <pyramation@gmail.com>
@pyramation pyramation mentioned this pull request Nov 23, 2025
@pyramation pyramation merged commit 2cbd8f0 into main Nov 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants