Skip to content

Commit

Permalink
Removed repeat method since it is not compatible with JDK 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ananya2 authored Jan 17, 2025
1 parent aa1ce7b commit 2f3ea63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2776,7 +2776,7 @@ public void testBigDecimalPrecision() throws SQLException {
// Test for DECIMAL(38, 38)
String callSQLMaxScale = "{call " + procNameMaxScale + "(?, ?)}";
try (CallableStatement call = connection.prepareCall(callSQLMaxScale)) {
BigDecimal maxScaleValue = new BigDecimal("0." + "1".repeat(38));
BigDecimal maxScaleValue = new BigDecimal("0.11111111111111111111111111111111111111");
call.setBigDecimal(1, maxScaleValue);
call.registerOutParameter(2, Types.DECIMAL);
call.execute();
Expand All @@ -2787,7 +2787,7 @@ public void testBigDecimalPrecision() throws SQLException {
// Test for DECIMAL(38, 0)
String callSQLMaxPrecision = "{call " + procNameMaxPrecision + "(?, ?)}";
try (CallableStatement call = connection.prepareCall(callSQLMaxPrecision)) {
BigDecimal maxPrecisionValue = new BigDecimal("9".repeat(38));
BigDecimal maxPrecisionValue = new BigDecimal("99999999999999999999999999999999999999");
call.setBigDecimal(1, maxPrecisionValue);
call.registerOutParameter(2, Types.DECIMAL);
call.execute();
Expand Down

0 comments on commit 2f3ea63

Please sign in to comment.