From 5f23eb3d7c256437c601c41f651dfecb9784f74c Mon Sep 17 00:00:00 2001 From: qw4990 Date: Fri, 30 Dec 2022 12:49:33 +0800 Subject: [PATCH] fixup --- expression/expression_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expression/expression_test.go b/expression/expression_test.go index e80cf5c41d575..4a24cb5eef759 100644 --- a/expression/expression_test.go +++ b/expression/expression_test.go @@ -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) {