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 48ed04e commit c2422c6Copy full SHA for c2422c6
test/ecto/adapters/postgres_test.exs
@@ -863,8 +863,6 @@ defmodule Ecto.Adapters.PostgresTest do
863
end
864
865
query = Schema |> select([r], fragment("?::integer", r.x and r.y)) |> plan()
866
- # Boolean operations inside fragments should be wrapped in parentheses
867
- # to ensure correct precedence with surrounding SQL
868
assert all(query) == ~s{SELECT (s0."x" AND s0."y")::integer FROM "schema" AS s0}
869
870
query = Schema |> select([r], fragment("?::integer", r.x or r.y)) |> plan()
0 commit comments