From 345141b0e70e123b12ed302eb2b6079b4c080ab8 Mon Sep 17 00:00:00 2001 From: u$f Date: Wed, 18 Sep 2024 13:43:44 +0200 Subject: [PATCH] edit --- src/main/java/org/usf/jquery/core/QueryBuilder.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/usf/jquery/core/QueryBuilder.java b/src/main/java/org/usf/jquery/core/QueryBuilder.java index ac04b80..863b0c6 100644 --- a/src/main/java/org/usf/jquery/core/QueryBuilder.java +++ b/src/main/java/org/usf/jquery/core/QueryBuilder.java @@ -100,10 +100,11 @@ public QueryBuilder orders(@NonNull DBOrder... orders) { public QueryBuilder filters(@NonNull DBFilter... filters){ this.clause = FILTER; for(var f : filters) { - var lvl = f.columns(this, group::add); + var arr = new ArrayList(); + var lvl = f.columns(this, arr::add); if(lvl > 0) { - (having).add(f); - aggregation |= true; + aggregation |= having.add(f); + group.addAll(arr); } else { where.add(f);