Skip to content

Commit eec9ac4

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 b75a314 commit eec9ac4

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
@@ -512,7 +512,15 @@ func ColumnSubstituteImpl(expr Expression, schema *Schema, newExprs []Expression
512512
}
513513
}
514514
if substituted {
515+
<<<<<<< HEAD:expression/util.go
515516
return true, hasFail, NewFunctionInternal(v.GetCtx(), v.FuncName.L, v.RetType, refExprArr.Result()...)
517+
=======
518+
newFunc, err := NewFunction(ctx, v.FuncName.L, v.RetType, refExprArr.Result()...)
519+
if err != nil {
520+
return true, true, v
521+
}
522+
return true, hasFail, newFunc
523+
>>>>>>> 3d68bd21240 (expression: fail `ColumnSubstituteImpl` if creating function returns error (#53716)):pkg/expression/util.go
516524
}
517525
}
518526
return false, false, expr

0 commit comments

Comments
 (0)