Prisma will throw PANIC when attempting to pass extremely large number beyond Postgres upper Int bound.
To run:
yarn install
node index.js
This will attempt 3 upserts. Once a PANIC happens, unable to continue any further Prisma actions.
- ✅ The first
upsert()
has a number within bounds will succeed. - ❌ The second
upsert()
has a number extremely out of range of Postgres' Int bounds that will throw a PANIC onOption::unwrap()
. - ❌ The third
upsert()
has a number within bounds, but will fail due to earlier PANIC within Prisma engine.