sqlc-dev / sqlc

Generate type-safe code from SQL
https://sqlc.dev
MIT License
13.51k stars 810 forks source link

fix: range subselect alias pointer dereference #3711

Open ahme-dev opened 5 days ago

ahme-dev commented 5 days ago

Made to solve dereference panics reported by a list of open issues (I've also seen it in my codebase):

  1. 3337

  2. 3514

  3. 2453

Queries and schemas combined below, none of which panic anymore on this branch. https://play.sqlc.dev/p/f1541063c62ed9302d43b7d00eec0d487764e5ee577a43e4114ff6c654585768