-
Notifications
You must be signed in to change notification settings - Fork 805
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
No longer able to retrieve enum array in v1.9.0 using pgx #1126
Comments
How are you using pgx with 1.6.0? Official support just landed in the latest release |
Hi @kyleconroy apologies. I was using version 1.6.0 (no pgx) and just tried upgrade. My github.com/jackc/pgconn v1.10.0
github.com/jackc/pgx/v4 v4.13.0 |
Can you include a code sample that shows how you're using sqlc 1.6.0 with pgx? It wasn't supported before, so I'm not sure how it was working. |
Hi @kyleconroy - let me restate the problem. Starting with In summary:
Repos: https://github.com/rhodee/enum_array_pgxv4 Thank you for your patience. |
@rhodee Those repositories are sadly 404ing for me. If you're still having issues, cold you try using the latest version of sqlc (1.17.2) with pgx/v5? If things are still broken, please open up a new issues with a complete repro and a link to play.sqlc.dev. |
Prior to
1.9.0
sqlc was able to return an([]interface{}, error)
for the following kind of query:My code sets up the following query:
I get the following error:
can't scan into dest[0]: unknown oid 20450 cannot be scanned into *interface {}
So I did some research and found the
RegisterDataType
method. This however has raised more questions of how to provide the pointer value to satisfy thepgtype.Value
.When I revert to
1.6.0
the issue is no longer present. Is there any guidance you can provide for getting unblocked?Awesome work team and I appreciate you helping me level up my pgx knowledge -
The text was updated successfully, but these errors were encountered: