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

fix(postgres): prevent panics when encountering unexpected ast nodes in range function lists #2449

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

andrewmbenton
Copy link
Collaborator

This is a fix for the issue causing a panic in #2416, but sqlc doesn't correctly handle cases where so-called SQL "value" functions appear in FROM clauses. I'm doubtful that sqlc ever supported this correctly.

The query in the test-case I added (SELECT * from CURRENT_DATE;) is valid, but as you can see from the generated output it won't actually produce the desired result. I will open a new issue for this.

@kyleconroy kyleconroy merged commit adaabbd into main Jul 13, 2023
7 checks passed
@kyleconroy kyleconroy deleted the andrew/fix-2416 branch July 13, 2023 15:45
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