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
{{ message }}
Repository navigation
Column does not exist error with jsonb_each in Postgres #1979
Activity
bretwalker commentedon Dec 2, 2022
Probably a duplicate of #1480
andrewmbenton commentedon Jun 6, 2023
This does appear to be a duplicate, but I think we should leave it open just in case the previous issue happens to be specific to
pgx/v4.test: Add case for #1979
fix(compiler): Pull in array information from analyzer (#2864)
kyleconroy commentedon Oct 24, 2023
This is fixed in v1.23.0 by enabling the database-backed query analyzer. We added a test case for this issue so it won’t break in the future.
You can play around with the working example on the playground
hectorj-thetreep commentedon Dec 8, 2023
Hi!
Does anyone know a workaround for people who aren't ready for the database-backed query analyzer yet?
kevinvalk commentedon Feb 28, 2024
@hectorj-thetreep
Yes! In the case of postgresql you can "simply" cast the
keytotextand it workskey::text!https://play.sqlc.dev/p/e1bb43f505ac08f827c5762aebfcf095eb6dfd2cfe478d34d99d26996ed2aa69
fix(compiler): Pull in array information from analyzer (sqlc-dev#2864)