Skip to content

Commit 6426aee

Browse files
author
James Cor
committed
place transaction iters under tracked iters
1 parent 181c4e3 commit 6426aee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sql/rowexec/transaction_iters.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ func AddTransactionCommittingIter(child sql.RowIter, qFlags *sql.QueryFlags) sql
7979
if qFlags != nil && qFlags.IsSet(sql.QFlagShowWarnings) {
8080
return child
8181
}
82+
// TODO: remove this once trackedRowIter is moved out of planbuilder
83+
// Insert TransactionCommittingIter as child of TrackedRowIter
84+
if trackedRowIter, ok := child.(*plan.TrackedRowIter); ok {
85+
return trackedRowIter.WithChildIter(&TransactionCommittingIter{childIter: trackedRowIter.GetIter()})
86+
}
8287
return &TransactionCommittingIter{childIter: child}
8388
}
8489

0 commit comments

Comments
 (0)