Skip to content

Commit 355ce12

Browse files
author
James Cor
committed
merge
2 parents 391ad72 + 2c6e3dd commit 355ce12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,13 +886,13 @@ func findCreateEventNode(planTree sql.Node) (*plan.CreateEvent, error) {
886886
}
887887

888888
// finalizeIters applies the final transformations on sql.RowIter before execution.
889-
func finalizeIters(ctx *sql.Context, analyzed sql.Node, qFlags *sql.QueryFlags, iter sql.RowIter) sql.RowIter {
889+
func finalizeIters(ctx *sql.Context, analyzed sql.Node, qFlags *sql.QueryFlags, iter sql.RowIter) (sql.RowIter, error) {
890890
var err error
891-
iter = rowexec.AddTriggerRollbackIter(ctx, qFlags, iter)
892891
iter, err = rowexec.AddAccumulatorIter(ctx, analyzed, iter)
893892
if err != nil {
894893
return nil, err
895894
}
895+
iter = rowexec.AddTriggerRollbackIter(ctx, qFlags, iter)
896896
iter = rowexec.AddTransactionCommittingIter(qFlags, iter)
897897
iter = plan.AddTrackedRowIter(ctx, analyzed, iter)
898898
iter = rowexec.AddExpressionCloser(analyzed, iter)

0 commit comments

Comments
 (0)