diff --git a/dbms/src/main/java/org/polypheny/db/transaction/TransactionImpl.java b/dbms/src/main/java/org/polypheny/db/transaction/TransactionImpl.java index dab111dce8..008a7db787 100644 --- a/dbms/src/main/java/org/polypheny/db/transaction/TransactionImpl.java +++ b/dbms/src/main/java/org/polypheny/db/transaction/TransactionImpl.java @@ -202,6 +202,7 @@ public void commit() throws TransactionException { Pair isValid = checkIntegrity(); if ( !isValid.left ) { + rollback( "Constraint violation" ); throw new TransactionException( isValid.right + "\nThere are violated constraints, the transaction was rolled back!" ); }