The JDBC 1.0 specification requires a scale factor with getBigDecimal method.
When a BigDecimal object is returned from the server, it must be rescaled using the original scale factor you used with getBigDecimal.
public BigDecimal getBigDecimal(int columnIndex) throws SQLException
SybResultSet rs = (SybResultSet)stmt.executeQuery("SELECT numeric_column from T1"); while (rs.next()) { BigDecimal bd rs.getBigDecimal( "numeric_column"); ... }