Skip to content

Commit 30a2d29

Browse files
small cleanup
1 parent a501347 commit 30a2d29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integration_test/myxql/prepare_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ defmodule Ecto.Integration.PrepareTest do
99
test "prepare option" do
1010
TestRepo.insert!(%Post{title: "one"})
1111

12+
query = from p in Post, select: fragment("'mxql test prepare option'")
1213
stmt_count_query = "SHOW GLOBAL STATUS LIKE '%prepared_stmt_count%'"
13-
assert %{rows: [[_, orig_count]]} = TestRepo.query!(stmt_count_query, [])
14-
orig_count = String.to_integer(orig_count)
1514

16-
query = from p in Post, select: fragment("'mxql test prepare option'")
15+
%{rows: [[_, orig_count]]} = TestRepo.query!(stmt_count_query, [])
16+
orig_count = String.to_integer(orig_count)
1717

1818
# Uncached
1919
assert TestRepo.all(query, prepare: :unnamed) == ["mxql test prepare option"]

0 commit comments

Comments
 (0)