When retrieving an array of numerics it attempted to set the scale on

the retrieved data to zero, which doesn't work for non-integer values.

Oliver Dauben
This commit is contained in:
Kris Jurka 2004-07-15 10:00:20 +00:00
parent 54affc0921
commit 7b2c575d4e

View File

@ -153,7 +153,7 @@ public class Array implements java.sql.Array
case Types.NUMERIC:
retVal = new BigDecimal[ count ];
for ( ; count > 0; count-- )
((BigDecimal[])retVal)[i++] = AbstractJdbc2ResultSet.toBigDecimal( arrayContents[(int)index++], 0 );
((BigDecimal[])retVal)[i++] = AbstractJdbc2ResultSet.toBigDecimal( arrayContents[(int)index++], -1 );
break;
case Types.REAL:
retVal = new float[ count ];