Skip to content

Commit

Permalink
[misc] add deprecation on CallableStatement.getBigDecimal(int paramet…
Browse files Browse the repository at this point in the history
…erIndex, int scale) (as in Java API)
  • Loading branch information
rusher committed Jul 24, 2017
1 parent b3b6536 commit 7cb369f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,19 +262,18 @@ public double getDouble(String parameterName) throws SQLException {
}

@Override
@Deprecated
@SuppressWarnings("deprecation")
public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException {
return getResult().getBigDecimal(indexToOutputIndex(parameterIndex));
}

@Override
@SuppressWarnings("deprecation")
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
return getResult().getBigDecimal(indexToOutputIndex(parameterIndex));
}

@Override
@SuppressWarnings("deprecation")
public BigDecimal getBigDecimal(String parameterName) throws SQLException {
return getResult().getBigDecimal(nameToOutputIndex(parameterName));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ public double getDouble(String parameterName) throws SQLException {
}

@Override
@Deprecated
@SuppressWarnings("deprecation")
public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException {
return getOutputResult().getBigDecimal(indexToOutputIndex(parameterIndex));
Expand Down

0 comments on commit 7cb369f

Please sign in to comment.