From: Barry Lind Date: Mon, 3 Jun 2002 17:52:05 +0000 (+0000) Subject: fixed bug reported by Noel Rappin (nrappin@sockeye.com) java Array type handled Times... X-Git-Tag: REL7_3~1458 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b48b4ab48e792f2815cfdbc83fa361c237efce80;p=postgresql fixed bug reported by Noel Rappin (nrappin@sockeye.com) java Array type handled Timestamps incorrectly --- diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java b/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java index 7539141152..90b56eb92d 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java @@ -172,7 +172,7 @@ public class Array implements java.sql.Array retVal = new Timestamp[ count ]; StringBuffer sbuf = null; for ( ; count > 0; count-- ) - ((java.sql.Timestamp[])retVal)[i++] = ResultSet.toTimestamp( arrayContents[(int)index], rs ); + ((java.sql.Timestamp[])retVal)[i++] = ResultSet.toTimestamp( arrayContents[(int)index++], rs ); break; // Other datatypes not currently supported. If you are really using other types ask