FINERACT-1089: Fixing 'Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY'

This commit is contained in:
Petri Tuomola
2021-12-23 18:20:28 +01:00
committed by Michael Vorburger ⛑️
parent b53fae870e
commit 7b4fcb9549
@@ -99,7 +99,10 @@ public class InterestRateChartReadPlatformServiceImpl implements InterestRateCha
sql.append("WHEN !isPrimaryGroupingByAmount then ircd.amount_range_to ");
sql.append("END");
return this.jdbcTemplate.query(sql.toString(), this.chartExtractor, new Object[] { productId });
return this.jdbcTemplate.query(
con -> con.prepareStatement(sql.toString(), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE),
ps -> ps.setLong(1, productId), this.chartExtractor);
}
@Override