mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: don't reuse binding in many to many aggregate joins
This commit is contained in:
parent
842f16a2fa
commit
3c2b8912d0
1 changed files with 3 additions and 0 deletions
|
@ -209,6 +209,9 @@ defmodule AshPostgres.Aggregate do
|
|||
^first_relationship.source_attribute_on_join_resource
|
||||
)
|
||||
)
|
||||
|> Map.update!(:__ash_bindings__, fn bindings ->
|
||||
Map.update!(bindings, :current, &(&1 + 1))
|
||||
end)
|
||||
|
||||
AshPostgres.Join.set_join_prefix(
|
||||
subquery,
|
||||
|
|
Loading…
Reference in a new issue