Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#53108
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
winoros authored and ti-chi-bot committed May 14, 2024
1 parent 335e834 commit 5b1e5dc
Show file tree
Hide file tree
Showing 3 changed files with 910 additions and 1 deletion.
9 changes: 8 additions & 1 deletion planner/core/logical_plan_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5940,7 +5940,7 @@ func (b *PlanBuilder) buildUpdateLists(ctx context.Context, tableList []*ast.Tab
if expr := extractDefaultExpr(assign.Expr); expr != nil {
expr.Name = assign.Column
}
newExpr, np, err = b.rewrite(ctx, assign.Expr, p, nil, false)
newExpr, np, err = b.rewrite(ctx, assign.Expr, p, nil, true)
if err != nil {
return nil, nil, false, err
}
Expand All @@ -5962,7 +5962,14 @@ func (b *PlanBuilder) buildUpdateLists(ctx context.Context, tableList []*ast.Tab
}
}

<<<<<<< HEAD:planner/core/logical_plan_builder.go
newExpr, np, err = b.rewriteWithPreprocess(ctx, assign.Expr, p, nil, nil, false, rewritePreprocess(assign))
=======
o := b.allowBuildCastArray
b.allowBuildCastArray = true
newExpr, np, err = b.rewriteWithPreprocess(ctx, assign.Expr, p, nil, nil, true, rewritePreprocess(assign))
b.allowBuildCastArray = o
>>>>>>> 97d47052e0c (planner: resolve panic when the update lists contain complex subquery (#53108)):pkg/planner/core/logical_plan_builder.go
if err != nil {
return nil, nil, false, err
}
Expand Down
Loading

0 comments on commit 5b1e5dc

Please sign in to comment.