Skip to content

Commit

Permalink
remove redundant 'FoldConstant' call in function 'EvaluateExprWithNul…
Browse files Browse the repository at this point in the history
…l' (pingcap#4534)
  • Loading branch information
spongedu authored and zz-jason committed Sep 15, 2017
1 parent 117ff28 commit 49e9b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ func EvaluateExprWithNull(ctx context.Context, schema *Schema, expr Expression)
if err != nil {
return nil, errors.Trace(err)
}
return FoldConstant(newFunc), nil
return newFunc, nil
case *Column:
if !schema.Contains(x) {
return x, nil
Expand Down

0 comments on commit 49e9b63

Please sign in to comment.