Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-rychlewski committed Dec 23, 2024
1 parent 8e907d6 commit 9fd7e4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion test/ecto/adapters/myxql_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,9 @@ defmodule Ecto.Adapters.MyXQLTest do
query = from(s in "schema", select: field(s, "x")) |> plan(:all) |> all()
assert query == ~s{SELECT s0.`x` FROM `schema` AS s0}

query = from(s in "schema", as: :schema, select: field(as(:schema), "x")) |> plan(:all) |> all()
query =
from(s in "schema", as: :schema, select: field(as(:schema), "x")) |> plan(:all) |> all()

assert query == ~s{SELECT s0.`x` FROM `schema` AS s0}
end

Expand Down
4 changes: 3 additions & 1 deletion test/ecto/adapters/postgres_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,9 @@ defmodule Ecto.Adapters.PostgresTest do
query = from(s in "schema", select: field(s, "x")) |> plan(:all) |> all()
assert query == ~s{SELECT s0."x" FROM "schema" AS s0}

query = from(s in "schema", as: :schema, select: field(as(:schema), "x")) |> plan(:all) |> all()
query =
from(s in "schema", as: :schema, select: field(as(:schema), "x")) |> plan(:all) |> all()

assert query == ~s{SELECT s0."x" FROM "schema" AS s0}
end

Expand Down
4 changes: 3 additions & 1 deletion test/ecto/adapters/tds_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,9 @@ defmodule Ecto.Adapters.TdsTest do
query = from(s in "schema", select: field(s, "x")) |> plan(:all) |> all()
assert query == ~s{SELECT s0.[x] FROM [schema] AS s0}

query = from(s in "schema", as: :schema, select: field(as(:schema), "x")) |> plan(:all) |> all()
query =
from(s in "schema", as: :schema, select: field(as(:schema), "x")) |> plan(:all) |> all()

assert query == ~s{SELECT s0.[x] FROM [schema] AS s0}
end

Expand Down

0 comments on commit 9fd7e4a

Please sign in to comment.