Skip to content

Commit

Permalink
planner: remove the unnecessary skip-plan-cache flag in StmtCtx (#40246)
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 authored Dec 30, 2022
1 parent 8e80e7c commit b97f60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/expression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TestEvaluateExprWithNullAndParameters(t *testing.T) {
res = EvaluateExprWithNull(ctx, schema, ltWithParam)
_, isConst := res.(*Constant)
require.True(t, isConst) // this expression is evaluated and skip-plan cache flag is set.
require.True(t, ctx.GetSessionVars().StmtCtx.SkipPlanCache)
require.True(t, !ctx.GetSessionVars().StmtCtx.UseCache)
}

func TestEvaluateExprWithNullNoChangeRetType(t *testing.T) {
Expand Down

0 comments on commit b97f60d

Please sign in to comment.