Open
Description
Version
1.23.0
What happened?
While investigating #2973, I discovered that the new database-backed query analysis engine correctly determines the types returned from aggregate functions (like SUM()
and MAX()
) but overrides appear not to be applied.
See the playground link below for a contrived example.
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
https://play.sqlc.dev/p/805a63c93e881d175878c977a7da684b8616b8dcb4f538520eacb5a5101a954b
What operating system are you using?
No response
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go