Skip to content

Commit c180233

Browse files
oops
1 parent b329d48 commit c180233

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

integration_test/myxql/prepare_test.exs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,22 @@ defmodule Ecto.Integration.PrepareTest do
1010

1111
stmt_count_query = "SHOW GLOBAL STATUS LIKE '%prepared_stmt_count%'"
1212
assert %{rows: [[_, orig_count]]} = TestRepo.query!(stmt_count_query, [])
13+
orig_count = String.to_integer(orig_count)
1314

1415
# Uncached
1516
assert TestRepo.all(Post, prepare: :unnamed) == [one, two]
1617
%{rows: [[_, new_count]]} = TestRepo.query!(stmt_count_query, [])
17-
assert new_count == orig_count
18+
assert String.to_integer(new_count) == orig_count
1819
assert TestRepo.all(Post, prepare: :named) == [one, two]
1920
assert %{rows: [[_, new_count]]} = TestRepo.query!(stmt_count_query, [])
20-
assert new_count == orig_count + 1
21+
assert String.to_integer(new_count) == orig_count + 1
2122

2223
# Cached
2324
assert TestRepo.all(Post, prepare: :unnamed) == [one, two]
2425
assert %{rows: [[_, new_count]]} = TestRepo.query!(stmt_count_query, [])
25-
assert new_count == orig_count + 1
26+
assert String.to_integer(new_count) == orig_count + 1
2627
assert TestRepo.all(Post, prepare: :named) == [one, two]
2728
assert %{rows: [[_, new_count]]} = TestRepo.query!(stmt_count_query, [])
28-
assert new_count == orig_count + 1
29+
assert String.to_integer(new_count) == orig_count + 1
2930
end
3031
end

0 commit comments

Comments
 (0)