Open ankisme opened 1 year ago
Hi everyone This error persist since 2022. Can someone ping the pull request https://github.com/sqlc-dev/sqlc/pull/3220 How one can possibly work without CTE or joins? Is SQLC only for primitive cases?
Please, pay attention to issues: https://github.com/sqlc-dev/sqlc/issues/2400 https://github.com/sqlc-dev/sqlc/issues/3169 https://github.com/sqlc-dev/sqlc/issues/1385
Though the solution of @smantic works well: https://github.com/sqlc-dev/sqlc/issues/1385#issuecomment-1571187337
Version
1.18.0
What happened?
Sqlc could not support table alias, the sql example is in below.
The error message is "table alias "t1" does not exist"
Relevant log output
No response
Database schema
SQL queries
Configuration
No response
Playground URL
No response
What operating system are you using?
No response
What database engines are you using?
No response
What type of code are you generating?
No response