Skip to content

Commit

Permalink
Add missing rollback()
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Dec 24, 2024
1 parent 6b3a6f7 commit 3722b5b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public void commit() throws TransactionException {

Pair<Boolean, String> isValid = checkIntegrity();
if ( !isValid.left ) {
rollback( "Constraint violation" );
throw new TransactionException( isValid.right + "\nThere are violated constraints, the transaction was rolled back!" );
}

Expand Down

0 comments on commit 3722b5b

Please sign in to comment.