Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

orisano
Copy link
Contributor

@orisano orisano commented Aug 3, 2023

close #2571

@orisano
Copy link
Contributor Author

orisano commented Aug 3, 2023

@kyleconroy If it is array, primitive types are used. Is this behavior correct?

@kyleconroy
Copy link
Collaborator

Is this behavior correct?

Yep! Both pgx and lib/pq can scan into slices. With lib/pq you need to do a bit more work with pq.Array, but sqlc does that for you.

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.

array column added from alter table are generated as non array
2 participants