Skip to content

Commit 6bb925b

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 3c599cd commit 6bb925b

File tree

3 files changed

+764
-0
lines changed

3 files changed

+764
-0
lines changed

pkg/expression/util.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,15 @@ func ColumnSubstituteImpl(expr Expression, schema *Schema, newExprs []Expression
519519
}
520520
}
521521
if substituted {
522+
<<<<<<< HEAD
522523
return true, hasFail, NewFunctionInternal(v.GetCtx(), v.FuncName.L, v.RetType, refExprArr.Result()...)
524+
=======
525+
newFunc, err := NewFunction(ctx, v.FuncName.L, v.RetType, refExprArr.Result()...)
526+
if err != nil {
527+
return true, true, v
528+
}
529+
return true, hasFail, newFunc
530+
>>>>>>> 3d68bd21240 (expression: fail `ColumnSubstituteImpl` if creating function returns error (#53716))
523531
}
524532
}
525533
return false, false, expr

0 commit comments

Comments
 (0)