-
Notifications
You must be signed in to change notification settings - Fork 830
New issue
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
Handle PostgreSQL system columns #1745
Comments
* test: Add a test case for #1745 * feat(postgresql): Support system columns * Remove stdlib * Update sqlc.yaml * Add exec.json --------- Co-authored-by: Andrew Benton <andrew@sqlc.dev>
v1.23.0 is out now, which includes this fix |
@kyleconroy I tried this feature with 1.25 but still got column does not exist error. https://play.sqlc.dev/p/8761c174f69f3c2e47a581c049c662eb60cf481160c46b491a5ed80b2f3dd043 |
after spending some time looking into the problem, I tested it using example config file
|
Version
1.14.0
What happened?
sqlc currently errors out with
column "…" does not exist
when referencing a PostgreSQL system column (tableoid
,xmin
,cmin
,xmax
,cmax
orctid
) in an SQL query.Example db-fiddle
Not sure if this should be a bug report or a feature request.
Relevant log output
column "ctid" does not exist
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/0a3172295b4a8b1a7dd1f78f56a864425724d1d5118c73a45f2fd313733c6910
What operating system are you using?
No response
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: