@@ -410,7 +410,6 @@ func applyTrigger(ctx *sql.Context, a *Analyzer, originalNode, n sql.Node, scope
410410 node , err := n .WithChildren (triggerExecutor )
411411 return node , transform .NewTree , err
412412 } else {
413- // TODO: add HasAfterTrigger flag for Update node
414413 return plan .NewTriggerExecutor (n , triggerLogic , plan .UpdateTrigger , plan .TriggerTime (trigger .TriggerTime ), sql.TriggerDefinition {
415414 Name : trigger .TriggerName ,
416415 CreateStatement : trigger .CreateTriggerString ,
@@ -440,7 +439,7 @@ func applyTrigger(ctx *sql.Context, a *Analyzer, originalNode, n sql.Node, scope
440439 node , err := n .WithChildren (triggerExecutor )
441440 return node , transform .NewTree , err
442441 } else {
443- // TODO: add HasAfterTrigger flag for DeleteFrom node
442+ // TODO: add HasAfterTrigger flag for DeleteFrom node once DELETE...RETURNING has been implemented
444443 return plan .NewTriggerExecutor (n , triggerLogic , plan .DeleteTrigger , plan .TriggerTime (trigger .TriggerTime ), sql.TriggerDefinition {
445444 Name : trigger .TriggerName ,
446445 CreateStatement : trigger .CreateTriggerString ,
0 commit comments