Skip to content

Conversation

@gwillem
Copy link
Contributor

@gwillemgwillem commented Jul 17, 2025

Fixes#3848

This would create a panic:

DELETE pt FROM primary_table pt JOIN (SELECT1as id) jt ONpt.id=jt.id;
panic: expected range var github.com/sqlc-dev/sqlc/internal/engine/dolphin.convertToRangeVarList(0x140000669c0?, 0x140008f0390) 

@dosubotdosubotbot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 17, 2025
@kyleconroykyleconroy merged commit eb4b0b5 into sqlc-dev:mainAug 2, 2025
8 checks passed
@gwillemgwillem deleted the wdg/fix-delete-join-subquery branch August 3, 2025 20:49
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:SThis PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete query with join returns panic: expected range var error

2 participants

@gwillem@kyleconroy