mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +03: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:
@@ -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 ];
|
||||
|
Reference in New Issue
Block a user