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

Skip to content

Conversation

hendrikhofstadt
Copy link
Contributor

Postgres sometimes returns incorrect values for attndims which explains the TODO in the code. Use the type-derived dimensions instead.
This fixes a bug where in rare cases arrays were not correctly detected in one of our applications.

According to https://postgrespro.com/list/thread-id/2304332

We don't really care. attndims is a historical leftover and should never
be relied on for any semantically significant purpose.
TBH, my inclination would be to remove the column altogether rather than
"fix" this.

@kyleconroy kyleconroy merged commit 564f67d into sqlc-dev:main Dec 4, 2023
@kyleconroy
Copy link
Collaborator

Thanks!

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.

2 participants