Skip to content

Commit

Permalink
expression: fix wrong size in the baseBuiltinFunc.cloneFrom (pingcap#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored Jan 21, 2025
1 parent ffd133a commit a6ab103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/expression/builtin.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ func (b *baseBuiltinFunc) equal(ctx EvalContext, fun builtinFunc) bool {
}

func (b *baseBuiltinFunc) cloneFrom(from *baseBuiltinFunc) {
b.args = make([]Expression, 0, len(b.args))
b.args = make([]Expression, 0, len(from.args))
for _, arg := range from.args {
b.args = append(b.args, arg.Clone())
}
Expand Down

0 comments on commit a6ab103

Please sign in to comment.