Skip to content

Commit c76ea18

Browse files
YangKeaoti-chi-bot
authored andcommitted
This is an automated cherry-pick of pingcap#53716
Signed-off-by: ti-chi-bot <[email protected]>
1 parent 21791f4 commit c76ea18

File tree

3 files changed

+6701
-0
lines changed

3 files changed

+6701
-0
lines changed

expression/util.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,15 @@ func ColumnSubstituteImpl(expr Expression, schema *Schema, newExprs []Expression
487487
}
488488
}
489489
if substituted {
490+
<<<<<<< HEAD:expression/util.go
490491
return true, hasFail, NewFunctionInternal(v.GetCtx(), v.FuncName.L, v.RetType, refExprArr.Result()...)
492+
=======
493+
newFunc, err := NewFunction(ctx, v.FuncName.L, v.RetType, refExprArr.Result()...)
494+
if err != nil {
495+
return true, true, v
496+
}
497+
return true, hasFail, newFunc
498+
>>>>>>> 3d68bd21240 (expression: fail `ColumnSubstituteImpl` if creating function returns error (#53716)):pkg/expression/util.go
491499
}
492500
}
493501
return false, false, expr

0 commit comments

Comments
 (0)