Permalink
Browse files

Fix ClassCastException in getTimestamp(idx, calendar).

  • Loading branch information...
AriSuutariST committed Oct 18, 2017
1 parent 8012f38 commit de89996084d3725e0815c1feee48f67bb05bb514
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/de/simplicit/vjdbc/serial/StreamingResultSet.java
@@ -1471,7 +1471,7 @@ public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
Timestamp timestamp = getTimestamp(columnIndex);
if(timestamp != null) {
cal.setTime(timestamp);
return (Timestamp)cal.getTime();
return new Timestamp(cal.getTime().getTime());
}
else {
return null;

0 comments on commit de89996

Please sign in to comment.