Skip to content

Commit

Permalink
Merge pull request #163 from Datical/DAT-3639
Browse files Browse the repository at this point in the history
DAT-3639: added `java.util.Date` as known input for
  • Loading branch information
SteveDonie committed Dec 13, 2019
2 parents 9918257 + d8f7452 commit ca34d65
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -458,6 +458,8 @@ public String getDateLiteral(final Date date) {
return getTimeLiteral(((java.sql.Time) date));
} else if (date instanceof java.sql.Timestamp) {
return getDateTimeLiteral(((java.sql.Timestamp) date));
} else if(date instanceof java.util.Date) {
return getDateTimeLiteral(new java.sql.Timestamp(date.getTime()));
} else {
throw new RuntimeException("Unexpected type: " + date.getClass().getName());
}
Expand Down

0 comments on commit ca34d65

Please sign in to comment.