Skip to content

Conversation

@earthboundkid
Copy link
Contributor

Fixes #2083

@kyleconroy
Copy link
Collaborator

I don't know the context for the sqlc thing, but I'm a little surprised whenever I see pgtype.FlatArray or especially pgtype.Array used directly. Typically, pgx can directly work with []T, [][]T, etc. I only anticipated pgtype.Array being used directly if the application actually needed to work with non-standard starting indexes.

What about nullable values? If I have a three strings and a NULL, I don't think those can be scanned into a []string.

@kyleconroy kyleconroy merged commit 8644195 into sqlc-dev:main Feb 16, 2023
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
* goType: don't use pgtype.Array

* pgx/v5: update tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't use pgtype.Array with pgx/v5 driver

2 participants