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

This commit is contained in:
rob bygrave committed 2020-11-25 20:19:20 +13:00
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();