postgresql-jdbc.git / summary / log / commit / refs

commit    ae1b79b439e384b3c4459aecf9c1ca45e57bccd2
Author:   Barry Lind <barry@xythos.com>
Date:     Mon Jun 03 17:52:05 2002 +0000

    fixed bug reported by Noel Rappin (nrappin@sockeye.com) java Array type handled Timestamps incorrectly


org/postgresql/jdbc2/Array.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org/postgresql/jdbc2/Array.java b/org/postgresql/jdbc2/Array.java index 75391411..90b56eb9 100644 --- a/org/postgresql/jdbc2/Array.java +++ b/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 [parent: fba22b7c9375]