-
Notifications
You must be signed in to change notification settings - Fork 857
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
Table alias not working #1385
Comments
Just wanted to add that this also affects Postgres in both CTE's and subqueries. Here's two very simple (and contrived) examples: |
Hello, Does someone has a workaround? |
Any update on this? |
casting the type of the placeholder seems to be a work around. Also wanted to mention this is only an issue when you have |
Version
1.11.0
What happened?
In v1.11.0, when I use an alias for a subquery table, sqlc will report an error for table alias does not exist, but when I change version to v1.10.0 everything is fine
Relevant log output
Database schema
No response
SQL queries
Configuration
No response
Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: