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(pg): error out on overflowing integer #3309

Merged
merged 4 commits into from
Oct 20, 2022
Merged

fix(pg): error out on overflowing integer #3309

merged 4 commits into from
Oct 20, 2022

Conversation

Weakky
Copy link
Member

@Weakky Weakky commented Oct 20, 2022

Overview

Add tests following up on quaint's PR prisma/quaint#415 to validate integers before they're sent to Postgres so that they don't overflow.

Previous work was done at the QE level here (#3231) before we reverted it because we didn't want MongoDB to error out on overflowing integers (since MongoDB technically supports integers higher than i32 for an Integer column).

Furthermore, all SQL connectors already errored out except for Postgres. This PR is much lighter than the previous one and really only fixes the issue, while adding regression tests for the future on all connectors.

TODO

@Weakky Weakky added this to the 4.6.0 milestone Oct 20, 2022
@Weakky Weakky merged commit 4333f57 into main Oct 20, 2022
@Weakky Weakky deleted the fix/pg-int-overflow branch October 20, 2022 16:03
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.

None yet

2 participants