Skip to content

Commit

Permalink
0002421: as400 triggers fail to execute with some clob datatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Oct 22, 2015
1 parent 4f3c839 commit e6d60eb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -7,7 +7,7 @@ public class Db2As400TriggerTemplate extends Db2TriggerTemplate {
public Db2As400TriggerTemplate(ISymmetricDialect symmetricDialect) {
super(symmetricDialect);

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

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

0 comments on commit e6d60eb

Please sign in to comment.