Skip to content

Commit

Permalink
0002636: Issue 0002584 in 3.7.33 broke AS/400 triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpmind-josh committed Jun 9, 2016
1 parent d9589b1 commit 11dfb54
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class Db2As400TriggerTemplate extends Db2TriggerTemplate {
public Db2As400TriggerTemplate(ISymmetricDialect symmetricDialect) {
super(symmetricDialect);

stringColumnTemplate = "case when $(tableAlias).\"$(columnName)\" is null then '' else '\"' || replace(replace($(tableAlias).\"$(columnName)\",'\\','\\\\'),'\"','\\\"') || '\"' end" ;
String castClobTo = symmetricDialect.getParameterService().getString(ParameterConstants.AS400_CAST_CLOB_TO, "DCLOB");

clobColumnTemplate = "case when $(tableAlias).\"$(columnName)\" is null then '' else '\"' || replace(replace(cast($(tableAlias).\"$(columnName)\" as "+castClobTo+"),'\\','\\\\'),'\"','\\\"') || '\"' end" ;
Expand Down

0 comments on commit 11dfb54

Please sign in to comment.