Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing Issue in Carbunql with Array Type Casting #555

Closed
mk3008 opened this issue Oct 30, 2024 · 0 comments · Fixed by #556
Closed

Parsing Issue in Carbunql with Array Type Casting #555

mk3008 opened this issue Oct 30, 2024 · 0 comments · Fixed by #556
Assignees
Labels
bug Something isn't working

Comments

@mk3008
Copy link
Owner

mk3008 commented Oct 30, 2024

I encountered an issue where Carbunql is not correctly parsing queries that contain array type casting in PostgreSQL. Specifically, the following query:

select '{1,2,3}'::int[] as array

is incorrectly parsed as:

SELECT
    '{1,2,3}'::int AS []

Instead of recognizing the int[] array type, Carbunql appears to parse the cast as int, followed by an empty array symbol [].

@mk3008 mk3008 self-assigned this Oct 30, 2024
@mk3008 mk3008 added the bug Something isn't working label Oct 30, 2024
@mk3008 mk3008 linked a pull request Oct 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant