From 2e7f811d2d3f6f1e28ef816adff5a91c452548d5 Mon Sep 17 00:00:00 2001 From: qw4990 Date: Tue, 14 Feb 2023 20:28:41 +0800 Subject: [PATCH] fixup --- planner/core/plan_cache_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner/core/plan_cache_test.go b/planner/core/plan_cache_test.go index 858cce28bf96a..87d0d75c71742 100644 --- a/planner/core/plan_cache_test.go +++ b/planner/core/plan_cache_test.go @@ -148,7 +148,7 @@ func TestNonPreparedPlanCacheSwitch(t *testing.T) { tk.MustExec(`select * from t where a=1`) tk.MustExec(`select * from t where a=1`) tk.MustQuery("select @@last_plan_from_cache").Check(testkit.Rows("1")) - tk.MustExec("set tidb_enable_non_prepared_plan_cache=1") + tk.MustExec("set tidb_enable_non_prepared_plan_cache=0") tk.MustExec(`select * from t where a=1`) // the session-level switch can take effect in real time tk.MustQuery("select @@last_plan_from_cache").Check(testkit.Rows("0")) }