Skip to content

Commit

Permalink
0003898: Tables created with VARCHAR instead of DATE (SQL-Server as
Browse files Browse the repository at this point in the history
source)
  • Loading branch information
erilong committed Apr 3, 2019
1 parent 2a5ef65 commit bc73673
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -188,9 +188,11 @@ protected Integer mapUnknownJdbcTypeForColumn(Map<String, Object> values) {
} else if ( typeName.toUpperCase().equals("SQL_VARIANT")) {
return Types.BINARY;
} else if (typeName.equalsIgnoreCase("DATETIMEOFFSET")) {
return MAPPED_TIMESTAMPTZ;
return MAPPED_TIMESTAMPTZ;
} else if (typeName.equalsIgnoreCase("datetime2")) {
return Types.TIMESTAMP;
} else if (typeName.equalsIgnoreCase("DATE")) {
return Types.DATE;
}
}
return super.mapUnknownJdbcTypeForColumn(values);
Expand Down

0 comments on commit bc73673

Please sign in to comment.