Skip to content

Commit

Permalink
0006143: 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 1e683c9 commit 7496e95
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,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 7496e95

Please sign in to comment.