FINERACT-1089: Fixing 'Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY'
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
b53fae870e
commit
7b4fcb9549
+4
-1
@@ -99,7 +99,10 @@ public class InterestRateChartReadPlatformServiceImpl implements InterestRateCha
|
|||||||
sql.append("WHEN !isPrimaryGroupingByAmount then ircd.amount_range_to ");
|
sql.append("WHEN !isPrimaryGroupingByAmount then ircd.amount_range_to ");
|
||||||
sql.append("END");
|
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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user