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.

@kyleconroy kyleconroy merged commit 320800a into sqlc-dev:main Aug 3, 2023
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
…n using "ALTER TABLE ADD COLUMN" (sqlc-dev#2572) * fix(postgres): Fixed a problem with array dimensions disappearing when using "ALTER TABLE ADD COLUMN". close sqlc-dev#2571 * test: update endtoend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants