mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-04 16:28:23 +00:00
#2114 - Fix PreparedStatement leak when findEach() with invalid SQL
This commit is contained in:
1 parent
20fc74219a
commit
b568e2efc7
1 file changed
+1
@@ -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