Prisma $transaction
fails to rollback when rejectOnNotFound
or *OrThrow
methods are used in one of the queries
#14949
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: transaction
Bug description
$transaction
is committed instead of being rolled back, when one of the queries fails withrejectOnNotFound: true
The function throws an error as expected, however the rollback is missing as reproduced in the code below.
Version: 3.15.2.
Likely to be an issue in the latest version as well.
How to reproduce
Expected behavior
The transaction is rolled back in this case.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: