Skip to content

Commit

Permalink
make sure to respect the transaction needs
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Aug 15, 2024
1 parent f8501c0 commit 3aaad01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/engine/recurse_cte.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (r *RecurseCTE) GetFields(ctx context.Context, vcursor VCursor, bindVars ma
}

func (r *RecurseCTE) NeedsTransaction() bool {
return false
return r.Seed.NeedsTransaction() || r.Term.NeedsTransaction()
}

func (r *RecurseCTE) Inputs() ([]Primitive, []map[string]any) {
Expand Down

0 comments on commit 3aaad01

Please sign in to comment.