Skip to content

Commit b48b4ab

Browse files
author
Barry Lind
committed
fixed bug reported by Noel Rappin (nrappin@sockeye.com) java Array type handled Timestamps incorrectly
1 parent 07cc12b commit b48b4ab

File tree

1 file changed

+1
-1
lines changed
  • src/interfaces/jdbc/org/postgresql/jdbc2

1 file changed

+1
-1
lines changed

src/interfaces/jdbc/org/postgresql/jdbc2/Array.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public Object getArray(long index, int count, Map map) throws SQLException
172172
retVal = new Timestamp[ count ];
173173
StringBuffer sbuf = null;
174174
for ( ; count > 0; count-- )
175-
((java.sql.Timestamp[])retVal)[i++] = ResultSet.toTimestamp( arrayContents[(int)index], rs );
175+
((java.sql.Timestamp[])retVal)[i++] = ResultSet.toTimestamp( arrayContents[(int)index++], rs );
176176
break;
177177

178178
// Other datatypes not currently supported. If you are really using other types ask

0 commit comments

Comments
 (0)