We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a501347 commit 30a2d29Copy full SHA for 30a2d29
integration_test/myxql/prepare_test.exs
@@ -9,11 +9,11 @@ defmodule Ecto.Integration.PrepareTest do
9
test "prepare option" do
10
TestRepo.insert!(%Post{title: "one"})
11
12
+ query = from p in Post, select: fragment("'mxql test prepare option'")
13
stmt_count_query = "SHOW GLOBAL STATUS LIKE '%prepared_stmt_count%'"
- assert %{rows: [[_, orig_count]]} = TestRepo.query!(stmt_count_query, [])
14
- orig_count = String.to_integer(orig_count)
15
16
- query = from p in Post, select: fragment("'mxql test prepare option'")
+ %{rows: [[_, orig_count]]} = TestRepo.query!(stmt_count_query, [])
+ orig_count = String.to_integer(orig_count)
17
18
# Uncached
19
assert TestRepo.all(query, prepare: :unnamed) == ["mxql test prepare option"]
0 commit comments