Numerics in Postgres bigger than 2<<128 crash Prisma/Quaint #11312
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/engines
Issue for tech Engines.
topic: BigInt
scalar type `BigInt`
Milestone
Bug description
Numeric types in Postgres should be able to hold
up to 131072 digits before the decimal point; up to 16383 digits after the decimal point
. The current limit by Prisma is(2 << 128) - 1
and it currently crashes if the limit is reached.I reported it here in quaint with more specific details: prisma/quaint#345 . Opening this one for two reasons, first to track the issue and second so people suggest possible solutions.
How to reproduce
"3618502788666131106986593281521497120414687020801267626233049500247285301248"
Expected behavior
No response
Prisma information
Use big numeric in any query
Environment & setup
Prisma Version
Stacktrace
The text was updated successfully, but these errors were encountered: