Skip to content

Commit 4be0d9f

Browse files
mysql and tds don't have analyze
1 parent c20e752 commit 4be0d9f

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

integration_test/myxql/explain_test.exs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,13 @@ defmodule Ecto.Integration.ExplainTest do
4444
end
4545

4646
test "explain without rolling back" do
47-
TestRepo.insert!(%Post{})
48-
assert [%Post{}] = TestRepo.all(Post)
49-
5047
{:ok, {:ok, explain}} =
5148
TestRepo.transaction(fn ->
52-
TestRepo.explain(:delete_all, Post, analyze: true, rollback: false, timeout: 20000)
49+
TestRepo.explain(:delete_all, Post, rollback: false, timeout: 20000)
5350
end)
5451

5552
assert explain =~ "DELETE"
5653
assert explain =~ "p0"
57-
assert TestRepo.all(Post) == []
5854
end
5955
end
6056
end

integration_test/tds/explain_test.exs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,13 @@ defmodule Ecto.Integration.ExplainTest do
3434
end
3535

3636
test "explain without rolling back" do
37-
TestRepo.insert!(%Post{})
38-
assert [%Post{}] = TestRepo.all(Post)
39-
4037
{:ok, {:ok, explain}} =
4138
TestRepo.transaction(fn ->
42-
TestRepo.explain(:delete_all, Post, analyze: true, rollback: false, timeout: 20000)
39+
TestRepo.explain(:delete_all, Post, rollback: false, timeout: 20000)
4340
end)
4441

4542
assert explain =~ "DELETE"
4643
assert explain =~ "p0"
47-
assert TestRepo.all(Post) == []
4844
end
4945
end
5046
end

0 commit comments

Comments
 (0)