From 77adeef59525d32ffb90c401f7338664b325a235 Mon Sep 17 00:00:00 2001 From: Stephan Hug Date: Mon, 13 Apr 2026 12:04:00 +0200 Subject: [PATCH] fix: use binding instead of 0 in add_aggregates --- lib/sort.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sort.ex b/lib/sort.ex index cf78b6b..359246e 100644 --- a/lib/sort.ex +++ b/lib/sort.ex @@ -163,7 +163,7 @@ defmodule AshSql.Sort do left_only?: true ) - case AshSql.Aggregate.add_aggregates(query, used_aggregates, resource, false, 0) do + case AshSql.Aggregate.add_aggregates(query, used_aggregates, resource, false, binding) do {:error, error} -> {:error, error}