Skip to content

Commit

Permalink
fix: execute union plan correctly (arana-db#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeffcaii authored May 30, 2022
1 parent 8210501 commit ce69d88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/runtime/plan/union.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (u UnionPlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result,
func (u UnionPlan) query(ctx context.Context, conn proto.VConn) (proto.Result, error) {
var generators []dataset.GenerateFunc
for _, it := range u.Plans {
it := it
generators = append(generators, func() (proto.Dataset, error) {
res, err := it.ExecIn(ctx, conn)
if err != nil {
Expand Down

0 comments on commit ce69d88

Please sign in to comment.