Skip to content

read dataTypeID and tableID as unsigned uint - #3347

Merged
brianc merged 2 commits into
brianc:masterfrom
alexDevBR:fix-datatype-id-negative
Jan 13, 2025
Merged

brianc merged 2 commits into
brianc:masterfrom
alexDevBR:fix-datatype-id-negative

Conversation

@alexDevBR

@alexDevBR alexDevBR commented Dec 3, 2024 •

Copy link
Copy Markdown
Contributor

The oids are supposed to be unsigned ints, according to the docs.
This causes issues with oids larger than 2^31 since they become negative.
This is causing issues in other projects, like sequelize/sequelize#15466 (comment)

@charmander charmander left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if any other things documented as IntN are secretly unsigned?

@alexDevBR

Copy link
Copy Markdown
Contributor Author

@charmander I made a request for the docs to be updated reflecting what fields are signed and which are unsigned. Can we merge this one, and when the request goes through and the docs are updated we can open another issue here to make the changes?

@alexDevBR

Copy link
Copy Markdown
Contributor Author

@charmander,is this ok to be merged?

@charmander

Copy link
Copy Markdown
Collaborator

Only brianc can publish a new version of the package, so most times, at best it doesn’t really help anything for me to merge a PR (and at worst I missed something in review, so may as well wait for the chance to get a second review anyway).

@alexDevBR

Copy link
Copy Markdown
Contributor Author

Ok. The request I made for documentation doesn't seem like it's going anywhere, and I found someone made the same request in 2020 here: https://www.postgresql.org/message-id/159173854100.661.1819403154632752741%40wrigleys.postgresql.org, so it doesn't seem like anything is going to change.

@brianc

brianc commented Jan 13, 2025

Copy link
Copy Markdown
Owner

whoah yikes! awesome find - i'm sure that took some digging. Thank you!

@brianc
brianc merged commit 9fbcf17 into brianc:master Jan 13, 2025
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.

3 participants