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.28.0
Reproduction:
CREATE TABLE authors ( id BIGSERIAL PRIMARY KEY, name text NOT NULL, bio text );
-- name: GetAuthor :one WITH author as ( SELECT * FROM authors WHERE id = $1 ) SELECT * from author;
The return type of the generated function is SelectCteTestRow - not Author although it's actually returning a Author.
SelectCteTestRow
Author
https://play.sqlc.dev/p/0d129e7ba6230256015139134fbdadb991601360635c1983117970d299b3df9e
macOS
PostgreSQL
Go
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
1.28.0
What happened?
Reproduction:
The return type of the generated function is
SelectCteTestRow
- notAuthor
although it's actually returning aAuthor
.Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/0d129e7ba6230256015139134fbdadb991601360635c1983117970d299b3df9e
What operating system are you using?
macOS
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: