Skip to content

Commit

Permalink
0006144: Fixed Postgres timestamp with time zone columns getting thei…
Browse files Browse the repository at this point in the history
…r values formatted incorrectly when extracted for a load
  • Loading branch information
evan-miller-jumpmind committed Dec 4, 2023
1 parent fab56b6 commit cee0068
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ public boolean useTriggerTemplateForColumnTemplatesDuringInitialLoad() {
*/
protected boolean useTriggerTemplateForColumnTemplatesDuringInitialLoad(Column column) {
if (!useTriggerTemplateForColumnTemplatesDuringInitialLoad() && column != null) {
int mappedType = column.getMappedTypeCode();
if (mappedType == ColumnTypes.TIMESTAMPTZ || mappedType == ColumnTypes.TIMESTAMPLTZ || mappedType == ColumnTypes.TIMETZ) {
return true;
}
int type = column.getJdbcTypeCode();
// These column types can be selected directly without a template
if (type == Types.CHAR || type == Types.NCHAR || type == Types.VARCHAR || type == ColumnTypes.NVARCHAR
Expand Down

0 comments on commit cee0068

Please sign in to comment.