Skip to content

Commit 25c924d

Browse files
authored
fix: double select error (#569)
1 parent aff1c41 commit 25c924d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/data_layer.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3423,7 +3423,7 @@ defmodule AshPostgres.DataLayer do
34233423
)
34243424

34253425
query_with_select =
3426-
from(sub in query,
3426+
from(sub in Ecto.Query.exclude(query, :select),
34273427
join: row in ^query.__ash_bindings__.resource,
34283428
# why doesn't `.root_binding` work the way I expect it to here?
34293429
on: ^dynamic,

0 commit comments

Comments
 (0)