Skip to content

Commit

Permalink
0001994: Time columns in postgres should be captured as time only. Da…
Browse files Browse the repository at this point in the history
…te is currently captured which breaks the postgres bulk loader
  • Loading branch information
chenson42 committed Sep 26, 2014
1 parent 83b4a3f commit b4846fd
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -38,6 +38,7 @@ public PostgreSqlTriggerTemplate(ISymmetricDialect symmetricDialect) {
numberColumnTemplate = "case when $(tableAlias).\"$(columnName)\" is null then '' else '\"' || cast(cast($(tableAlias).\"$(columnName)\" as numeric) as varchar) || '\"' end" ;
dateColumnTemplate = "case when $(tableAlias).\"$(columnName)\" is null then '' else '\"' || to_char($(tableAlias).\"$(columnName)\", 'YYYY-MM-DD HH24:MI:SS') || '\"' end" ;
datetimeColumnTemplate = "case when $(tableAlias).\"$(columnName)\" is null then '' else '\"' || to_char($(tableAlias).\"$(columnName)\", 'YYYY-MM-DD HH24:MI:SS.US') || '\"' end" ;
timeColumnTemplate = "case when $(tableAlias).\"$(columnName)\" is null then '' else '\"' || to_char($(tableAlias).\"$(columnName)\", 'HH24:MI:SS.US') || '\"' end" ;
dateTimeWithTimeZoneColumnTemplate =
"case when $(tableAlias).\"$(columnName)\" is null then '' else " +
" case " +
Expand Down

0 comments on commit b4846fd

Please sign in to comment.