Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Feb 14, 2023
1 parent b652cd2 commit 2e7f811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planner/core/plan_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand Down

0 comments on commit 2e7f811

Please sign in to comment.