Skip to content

fix(compiler/mysql): prevent panic in convertSetOprSelectList() #4042

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

Merged
merged 1 commit into from
Aug 5, 2025

Conversation

andrewmbenton
Copy link
Collaborator

I'm pretty sure this logic makes sense, i.e. recursively convert convertSetOprSelectList nodes. There may be other unexpected node types that show up but I think handling these cases as they come up is the right approach.

Resolves #2453

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🔧 golang labels Aug 5, 2025
@kyleconroy kyleconroy merged commit e3ad3b5 into main Aug 5, 2025
8 checks passed
@kyleconroy kyleconroy deleted the andrew/fix-aliased-union-panic branch August 5, 2025 16:35
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files. 🔧 golang
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sqlc panics on union all with subqueries using mysql
2 participants