We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.27.0
Resolving references to multiple CTE's with arguments fails.
This is a duplicate of #3219, but 3219 has been closed even thought the issue still persists and the relevant PR is not merged.
PR to fix this issue: #3220
sqlc generate failed. # package query.sql:5:28: table alias "t1_ids" does not exist
CREATE TABLE t1 ( id SERIAL NOT NULL PRIMARY KEY );
-- name: CTERef :one WITH t1_ids AS ( SELECT id FROM t1 ) SELECT * FROM t1_ids WHERE t1_ids.id = sqlc.arg('id');
{ "version": "2", "sql": [{ "schema": "schema.sql", "queries": "query.sql", "engine": "postgresql", "gen": { "go": { "out": "db" } } }] }
https://play.sqlc.dev/p/9048b486f822c300301650867612e42bef8f8d512dfd12d84ad3a4cd210f4ef7
Linux
PostgreSQL
Go
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
1.27.0
What happened?
Resolving references to multiple CTE's with arguments fails.
This is a duplicate of #3219, but 3219 has been closed even thought the issue still persists and the relevant PR is not merged.
PR to fix this issue: #3220
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/9048b486f822c300301650867612e42bef8f8d512dfd12d84ad3a4cd210f4ef7
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: