You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vmantese
changed the title
Column 'key' not found when using postgres json_each PostgreSQL 14.1 (Debian 14.1-1.pgdg110+1)
Column 'key' not found when using postgres json_each PostgreSQL 14.1
Mar 9, 2022
Is there any workaround? I don't care about these views (in that I don't need sqlc to generated any code for queries based on these views or their descendants). But they are part of my migration history (tern) and I'd prefer not to temporarily change historical migrations if there is a simpler way.
Version
1.12.0
What happened?
When running sqlc v1.12.0
➜ sqlc compile
# package db
sql/query/advanced.sql:3:84: column "key" does not exist
It appears sqlc compile is not aware of the emitted columns by the json_each function (key and value)
Relevant log output
No response
Database schema
No schema required in this mini example.
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/dcd22b0f5a67e13b2138885ec1afe23d566d9928203bbf4afabc1dea9f9110fd
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: