Skip to content

Commit b8e31d8

Browse files
author
Jason Stiebs
committed
Formatter
1 parent 069ed71 commit b8e31d8

File tree

4 files changed

+2857
-15
lines changed

4 files changed

+2857
-15
lines changed

lib/ecto/adapters/sqlite3/connection.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ defmodule Ecto.Adapters.SQLite3.Connection do
13731373
end
13741374
end
13751375

1376-
#TODO It technically is, its just a json array, so we *could* support it
1376+
# TODO It technically is, its just a json array, so we *could* support it
13771377
def expr(list, _sources, query) when is_list(list) do
13781378
raise Ecto.QueryError,
13791379
query: query,

test/ecto/adapters/sqlite3/connection_test.exs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -946,9 +946,11 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
946946
|> select([], true)
947947
|> plan()
948948

949-
assert all(query) == ~s{SELECT 1 FROM "schema" AS s0 WHERE (s0."foo" = CAST(123.0 AS REAL))}
949+
assert all(query) ==
950+
~s{SELECT 1 FROM "schema" AS s0 WHERE (s0."foo" = CAST(123.0 AS REAL))}
950951

951952
name = "y"
953+
952954
query =
953955
"schema"
954956
|> where(fragment("? = ?", literal(^name), "Main"))
@@ -959,13 +961,13 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
959961
end
960962

961963
test "selected_as" do
962-
query =
963-
from(s in "schema",
964-
select: %{
965-
y: selected_as(s.y, :y2),
966-
}
967-
)
968-
|> plan()
964+
query =
965+
from(s in "schema",
966+
select: %{
967+
y: selected_as(s.y, :y2)
968+
}
969+
)
970+
|> plan()
969971

970972
assert all(query) == ~s|SELECT s0."y" AS "y2" FROM "schema" AS s0|
971973
end

0 commit comments

Comments
 (0)