mirror of
https://github.com/postgres/postgres.git
synced 2026-04-21 06:08:26 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue