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:
parent
54affc0921
commit
7b2c575d4e
@ -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 ];
|
||||
|
Loading…
x
Reference in New Issue
Block a user