Skip to content

Commit

Permalink
fix setMaxValue interface issue in some database, such as openGauss
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfeihuo committed Apr 26, 2024
1 parent d42d467 commit b7ae2fc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ protected String resultSetSchemaName(ResultSet resultSet) throws SQLException {

protected Number resultSetStartValueSize(ResultSet resultSet) throws SQLException {
String column = sequenceStartValueColumn();
return column != null ? resultSet.getLong( column ) : null;
return column != null ? resultSet.getBigDecimal( column ) : null;
}

protected Number resultSetMinValue(ResultSet resultSet) throws SQLException {
String column = sequenceMinValueColumn();
return column != null ? resultSet.getLong( column ) : null;
return column != null ? resultSet.getBigDecimal( column ) : null;
}

protected Number resultSetMaxValue(ResultSet resultSet) throws SQLException {
String column = sequenceMaxValueColumn();
return column != null ? resultSet.getLong( column ) : null;
return column != null ? resultSet.getBigDecimal( column ) : null;
}

protected Number resultSetIncrementValue(ResultSet resultSet) throws SQLException {
Expand Down

0 comments on commit b7ae2fc

Please sign in to comment.