-
Notifications
You must be signed in to change notification settings - Fork 855
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
column does not exists (when an alias) #1739
Comments
I am also having this issue. :) |
Same here but for table alias. system: Fedora Linux 37 64-bit |
Ouch, not helping here either but I've just hit the same issue as @ovas7 😅 Thanks for otherwise a fantastic project ❤️ |
I am running v1.15.0 and have the same problem |
having the same issue, this query :
returns:
my sqlc.yaml:
someone please test the same here: https://play.sqlc.dev/p/d24769ff48755a1d32d5972fcac9e8966d475c3e22c4e508d8bfd9568554ba6c |
@tiklup11 your issue is unrelated to this one. Please read the description properly. As for your issue, if you remove the ( |
@milosgajdos sorry mb, thanks for your help. |
This is fixed in v1.23.0 by enabling the database-backed query analyzer. We added a test case for this issue so it won’t break in the future. You can play around with the working example on the playground |
Version
1.14.0
What happened?
the above query does not compile using sqlc generate.
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/3935699fa944c07c82d9e0c5cfdd84e95ffd315c62e09a3801bf9209d5f29e81
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: