Skip to content

Commit

Permalink
This is an automated cherry-pick of #38537
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
qw4990 authored and ti-chi-bot committed Dec 28, 2022
1 parent cf36a9c commit 33f4165
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions planner/core/plan_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func TestIssue38533(t *testing.T) {
tk.MustExec(`execute st using @a, @a`)
tk.MustQuery("select @@last_plan_from_cache").Check(testkit.Rows("0"))
}
<<<<<<< HEAD

func TestIssue38710(t *testing.T) {
store := testkit.CreateMockStore(t)
Expand Down Expand Up @@ -176,3 +177,5 @@ func TestIssue38710(t *testing.T) {
require.Equal(t, 2, len(rows.Rows()))
tk.MustQuery("select @@last_plan_from_cache").Check(testkit.Rows("0")) // can not use the cache because the types for @a and @b are not equal to the cached plan
}
=======
>>>>>>> 7806b7c151 (planner: process over-optimization and skip plan-cache in some cases to avoid disaster plans (#38537))

0 comments on commit 33f4165

Please sign in to comment.