mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#2114 - Fix PreparedStatement leak when findEach() with invalid SQL
This commit is contained in:
@@ -237,6 +237,7 @@ public class CQueryEngine {
|
||||
|
||||
} catch (SQLException e) {
|
||||
try {
|
||||
cquery.close();
|
||||
throw cquery.createPersistenceException(e);
|
||||
} finally {
|
||||
request.rollbackTransIfRequired();
|
||||
|
||||
Reference in New Issue
Block a user