Skip to content

Commit e360184

Browse files
committed
switch to identifier/1 in tests to avoid warnings
1 parent 173d235 commit e360184

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/ecto/adapters/sqlite3/connection/select_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ defmodule Ecto.Adapters.SQLite3.Connection.SelectTest do
157157
assert ~s{SELECT downcase(s0."x") FROM "schema" AS s0} == all(query)
158158
end
159159

160-
test "collating with literal" do
160+
test "collating with identifier" do
161161
query =
162162
Schema
163-
|> select([r], fragment("? COLLATE ?", r.x, literal(^"es_ES")))
163+
|> select([r], fragment("? COLLATE ?", r.x, identifier(^"es_ES")))
164164
|> plan()
165165

166166
assert ~s{SELECT s0."x" COLLATE "es_ES" FROM "schema" AS s0} == all(query)

test/ecto/integration/crud_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,11 @@ defmodule Ecto.Integration.CrudTest do
272272
assert [_] = TestRepo.all(from(a in Account, as: :user, where: exists(subquery)))
273273
end
274274

275-
test "can handle fragment literal" do
275+
test "can handle fragment identifier" do
276276
account1 = TestRepo.insert!(%Account{name: "Main"})
277277

278278
name = "name"
279-
query = from(a in Account, where: fragment("? = ?", literal(^name), "Main"))
279+
query = from(a in Account, where: fragment("? = ?", identifier(^name), "Main"))
280280

281281
assert [account] = TestRepo.all(query)
282282
assert account.id == account1.id

0 commit comments

Comments
 (0)