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
Some errors are obfuscated by interactive transactions when using binary
engine
#12862
Comments
Thanks for the great reproduction @driimus (as usual 🙇), I can indeed reproduce this, both with the original version and with updated Prisma: driimus/prisma-interactive-tx-errors#2 An additional note: |
The reason this is happening is due to the fact that this:
Has been added to the migration file, and because of the fact that it's not something that Prisma generates we don't have the logic to handle it. We are looking into propagating all of those errors. |
Bug description
Runtime errors such as
CHECK
constraint failures are obfuscated by interactive transactions whenengineType = "binary"
, making it impossible to appropriately handle rejected transactions.Only tested this with
postgres
so far.Note that the
library
engine does not seem to have the same issue. CI output comparing both engine types: https://github.com/driimus/prisma-interactive-tx-errors/actions/runs/2184082955How to reproduce
binary
engineExpected behavior
The original error / error message should be surfaced, similar to the
library
engine's behavior.Expected:
Received:
Prisma information
Minimal reproduction repo
Environment & setup
Ubuntu 20.04.4 LTS
PostgreSQL
16.14.2
Prisma Version
The text was updated successfully, but these errors were encountered: