提交 58e378f1 编写于 作者: X xuqingchai

fix BigDecimal error

上级 914048f1
...@@ -149,7 +149,7 @@ public class DatabaseMetaDataResultSet extends AbstractResultSet { ...@@ -149,7 +149,7 @@ public class DatabaseMetaDataResultSet extends AbstractResultSet {
public BigDecimal getBigDecimal(int columnIndex) throws SQLException { public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
int colType = columnMetaDataList.get(columnIndex - 1).getColType(); int colType = columnMetaDataList.get(columnIndex - 1).getColType();
double value = rowCursor.getDouble(columnIndex, colType); double value = rowCursor.getDouble(columnIndex, colType);
return new BigDecimal(value); return BigDecimal.valueOf(value);
} }
@Override @Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册