Skip to content

Commit

Permalink
0003643: Error in DB2 select's for initial load and triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpmind-josh committed Jul 25, 2018
1 parent 3488239 commit ad2e739
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -30,10 +30,11 @@

public class Db2zOsTriggerTemplate extends Db2TriggerTemplate {


public Db2zOsTriggerTemplate(ISymmetricDialect symmetricDialect) {
super(symmetricDialect);

stringColumnTemplate = "case when $(tableAlias).\"$(columnName)\" is null then '' else '\"' || replace(replace($(tableAlias).\"$(columnName)\",'\\','\\\\'),'\"','\\\"') || '\"' end" ;
stringColumnTemplate = "case when $(tableAlias).\"$(columnName)\" is null or $(tableAlias).\"$(columnName)\" = '' then $(oracleToClob)'' else '\"' || replace(replace($(oracleToClob)$(tableAlias).\"$(columnName)\",'\\','\\\\'),'\"','\\\"') || '\"' end" ;

sqlTemplates.put("insertTriggerTemplate" ,
"CREATE TRIGGER $(schemaName)$(triggerName) \n" +
Expand Down

0 comments on commit ad2e739

Please sign in to comment.