Skip to content

Commit

Permalink
0001496: Triggers not created when "handle key updates" enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanes committed Dec 20, 2013
1 parent a6fbc9c commit 8f974ec
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -249,7 +249,10 @@ public String createTriggerDDL(DataEventType dml, Trigger trigger, TriggerHistor

String ddl = sqlTemplates.get(dml.name().toLowerCase() + "TriggerTemplate");
if (dml.getDmlType().equals(DmlType.UPDATE) && trigger.isUseHandleKeyUpdates()) {
ddl = sqlTemplates.get(dml.name().toLowerCase() + "HandleKeyUpdates" + "TriggerTemplate");
String temp = sqlTemplates.get(dml.name().toLowerCase() + "HandleKeyUpdates" + "TriggerTemplate");
if (StringUtils.trimToNull(temp)!=null) {
ddl=temp;
}
}
if (ddl == null) {
throw new NotImplementedException(dml.name() + " trigger is not implemented for "
Expand Down

0 comments on commit 8f974ec

Please sign in to comment.