Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Sep 18, 2024
1 parent 121f91e commit 345141b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/usf/jquery/core/QueryBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<DBColumn>();
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);
Expand Down

0 comments on commit 345141b

Please sign in to comment.