]> granicus.if.org Git - postgresql/commitdiff
fixed bug reported by Noel Rappin (nrappin@sockeye.com) java Array type handled Times...
authorBarry Lind <barry@xythos.com>
Mon, 3 Jun 2002 17:52:05 +0000 (17:52 +0000)
committerBarry Lind <barry@xythos.com>
Mon, 3 Jun 2002 17:52:05 +0000 (17:52 +0000)
src/interfaces/jdbc/org/postgresql/jdbc2/Array.java

index 75391411527c2a03a2f7812679ada42fe17e1dab..90b56eb92d890aaab781c4584e94e39905f46827 100644 (file)
@@ -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