summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKris Jurka <books@ejurka.com>2004-07-15 10:00:20 +0000
committerKris Jurka <books@ejurka.com>2004-07-15 10:00:20 +0000
commit7b2c575d4e73e456116419e7069d1512536a736a (patch)
tree471b8e393ff0b57f14604bb5b0ac52a991e6643c /src
parent54affc0921a169559ccbca57fa1b7a9ba09ef813 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/jdbc/org/postgresql/jdbc2/Array.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java b/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java
index d3317b680c2..77c40139199 100644
--- a/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java
+++ b/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java
@@ -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 ];