Skip to content
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

fix(postgres): Fixed a problem with array dimensions disappearing when using "ALTER TABLE ADD COLUMN" #2572

Merged
merged 2 commits into from
Aug 3, 2023

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