#2114 - Fix PreparedStatement leak when findEach() with invalid SQL

This commit is contained in:
rob bygrave
2020-11-25 20:19:20 +13:00
parent 20fc74219a
commit b568e2efc7
@@ -237,6 +237,7 @@ public class CQueryEngine {
} catch (SQLException e) {
try {
cquery.close();
throw cquery.createPersistenceException(e);
} finally {
request.rollbackTransIfRequired();