mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
Fix for #79 - Rollback in case of connection closed - deactivate() not called when connection.rollback() fails
This commit is contained in:
1 parent
5a5f479568
commit
f85fa2c21d
1 file changed
+4
-3
@@ -634,12 +634,13 @@ public class JdbcTransaction implements SpiTransaction {
|
||||
try {
|
||||
connection.rollback();
|
||||
|
||||
} catch (Exception ex) {
|
||||
throw new PersistenceException(ex);
|
||||
|
||||
} finally {
|
||||
// these will not throw an exception
|
||||
deactivate();
|
||||
notifyRollback(cause);
|
||||
|
||||
} catch (Exception ex) {
|
||||
throw new PersistenceException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user