Skip to content

Commit b6faa88

Browse files
Fix array test (#453)
1 parent 69b778f commit b6faa88

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

integration_test/sql/sql.exs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ defmodule Ecto.Integration.SQLTest do
3737
result = TestRepo.query!("SELECT array[]::integer[] = $1", [[]])
3838
assert result.rows == [[true]]
3939

40-
query = from t in Tag, where: t.items == []
41-
assert [] == TestRepo.all(query)
40+
%{id: tag_id} = TestRepo.insert!(%Tag{uuids: []})
41+
query = from t in Tag, where: t.uuids == []
42+
assert [%{id: ^tag_id}] = TestRepo.all(query)
4243
end
4344

4445
test "query!/4 with dynamic repo" do

0 commit comments

Comments
 (0)