Skip to content

Commit f249970

Browse files
author
James Cor
committed
Merge branch 'main' into james/events
2 parents f2e9cf7 + db81318 commit f249970

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

server/node/context_root_finalizer.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ type rootFinalizerIter struct {
9999
childIter sql.RowIter
100100
}
101101

102-
var _ sql.RowIter = (*rootFinalizerIter)(nil)
102+
var _ sql.MutableRowIter = (*rootFinalizerIter)(nil)
103103

104104
// Next implements the interface sql.RowIter.
105105
func (r *rootFinalizerIter) Next(ctx *sql.Context) (sql.Row, error) {
@@ -115,3 +115,15 @@ func (r *rootFinalizerIter) Close(ctx *sql.Context) error {
115115
}
116116
return core.CloseContextRootFinalizer(ctx)
117117
}
118+
119+
// GetChildIter implements the interface sql.CustomRowIter.
120+
func (r *rootFinalizerIter) GetChildIter() sql.RowIter {
121+
return r.childIter
122+
}
123+
124+
// WithChildIter implements the interface sql.CustomRowIter.
125+
func (r *rootFinalizerIter) WithChildIter(childIter sql.RowIter) sql.RowIter {
126+
nr := *r
127+
nr.childIter = childIter
128+
return &nr
129+
}

0 commit comments

Comments
 (0)