Skip to content

Commit ae7adcc

Browse files
committed
fix: properly increment aggregate bindings across joins
1 parent 24e3c61 commit ae7adcc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/join.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ defmodule AshSql.Join do
10341034
used_aggregates,
10351035
relationship.destination,
10361036
false,
1037-
initial_ash_bindings.current,
1037+
initial_ash_bindings.current + 1,
10381038
{query.__ash_bindings__.resource, full_path}
10391039
)
10401040
end

0 commit comments

Comments
 (0)