Permalink
Browse files

Merge pull request #1 from AriSuutariST/tsfix

Fix ClassCastException in getTimestamp(idx, calendar).
  • Loading branch information...
daitangio committed Oct 22, 2017
2 parents 8012f38 + de89996 commit d06c42b6c0fce0bd71cce8ee6138f52c8ce1dc69
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 d06c42b

Please sign in to comment.