Skip to content

Commit 65ef782

Browse files
committed
Test query returns no result without prefix
1 parent 035e40b commit 65ef782

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎integration_test/prefix_test.exs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Ecto.Integration.PrefixTest do
22
use Ecto.Integration.Case, async: true
33

4-
import Ecto.Query, only: [from: 2]
4+
import Ecto.Query, only: [from: 1, from: 2]
55

66
alias Ecto.Integration.Post
77
alias Ecto.Integration.TestRepo
@@ -17,5 +17,11 @@ defmodule Ecto.Integration.PrefixTest do
1717
|> TestRepo.all()
1818

1919
assert [%Post{id: 1}] = results
20+
21+
results =
22+
from(Post)
23+
|> TestRepo.all()
24+
25+
assert [] = results
2026
end
2127
end

0 commit comments

Comments
 (0)