Skip to content

Commit

Permalink
Update plan_cache_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fzzf678 committed Mar 1, 2023
1 parent 5e16d5d commit 54ec330
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions planner/core/plan_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1004,8 +1004,9 @@ func TestPlanCacheSubquerySPMEffective(t *testing.T) {
params []int
}{
{"select * from t t1 where exists (select /*/ 1 from t t2 where t2.b < t1.b and t2.b < ?)", []int{1}}, // exist
{"select * from t t1 where exists (select /*/ b from t t2 where t1.a = t2.a and t2.b<? limit 1)", []int{1}},
{"select * from t t1 where exists (select /*/ b from t t2 where t1.a = t2.a and t2.b<? limit ?)", []int{1, 1}},
{"select * from t t1 where exists (select /*/ b from t t2 where t1.a = t2.a and t2.b < ? limit ?)", []int{1, 1}},
{"select * from t t1 where t1.a in (select /*/ a from t t2 where t2.a > ? and t1.a = t2.a)", []int{1}},
{"select * from t t1 where t1.a < (select /*/ sum(t2.a) from t t2 where t2.b = t1.b and t2.a > ?)", []int{1}},
}

// hint
Expand Down

0 comments on commit 54ec330

Please sign in to comment.