From a39ffc0eab27b448591a3568b3021f3621b3f5c8 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Thu, 25 Nov 2021 14:39:15 +0100 Subject: [PATCH] added patch tom manage limit=0 --- .../postgresql/AccountingPersistenceQueryPostgreSQL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java b/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java index 83f1e73..64bb76c 100644 --- a/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java +++ b/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java @@ -215,7 +215,7 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten orderingProperty = AccountingPersistenceQuery.getDefaultOrderingProperties(clz); } - if(limit == null || limit >50) { + if(limit == null || limit<1 || limit >50) { limit = MAX_TOP_LIMIT; }