Skip to content

Commit

Permalink
Update expression.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fzzf678 committed Jan 18, 2023
1 parent 83382cf commit ee4daad
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 @@ -817,7 +817,7 @@ func SplitDNFItems(onExpr Expression) []Expression {
func EvaluateExprWithNull(ctx sessionctx.Context, schema *Schema, expr Expression) Expression {
if MaybeOverOptimized4PlanCache(ctx, []Expression{expr}) {
ctx.GetSessionVars().StmtCtx.SkipPlanCache = true
ctx.GetSessionVars().StmtCtx.AppendWarning(errors.Errorf("skip plan-cache: %v affects null check"))
ctx.GetSessionVars().StmtCtx.AppendWarning(errors.New("skip plan-cache: %v affects null check"))
}
if ctx.GetSessionVars().StmtCtx.InNullRejectCheck {
expr, _ = evaluateExprWithNullInNullRejectCheck(ctx, schema, expr)
Expand Down

0 comments on commit ee4daad

Please sign in to comment.