mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1048 - Fix connection leak on failed findIterate()
This commit is contained in:
1 parent
e913f88f52
commit
080bafe18f
1 file changed
+5
-1
@@ -232,7 +232,11 @@ public class CQueryEngine {
|
||||
return readIterate;
|
||||
|
||||
} catch (SQLException e) {
|
||||
throw cquery.createPersistenceException(e);
|
||||
try {
|
||||
throw cquery.createPersistenceException(e);
|
||||
} finally {
|
||||
request.rollbackTransIfRequired();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user