diff --git a/expression/builtin_op.go b/expression/builtin_op.go index ec252922ae718..867aebbb25660 100644 --- a/expression/builtin_op.go +++ b/expression/builtin_op.go @@ -179,11 +179,11 @@ func (c *logicXorFunctionClass) getFunction(ctx sessionctx.Context, args []Expre if err != nil { return nil, err } - args[0], err = wrapWithIsTrue(ctx, true, args[0]) + args[0], err = wrapWithIsTrue(ctx, true, args[0], false) if err != nil { return nil, errors.Trace(err) } - args[1], err = wrapWithIsTrue(ctx, true, args[1]) + args[1], err = wrapWithIsTrue(ctx, true, args[1], false) if err != nil { return nil, errors.Trace(err) }