From 56632867ecdedf8a7b14bfe81aa8c29798e2b43a Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sat, 2 Mar 2024 22:17:11 +0100 Subject: [PATCH] DB: forgot static --- pandalib-db/src/main/java/fr/pandacube/lib/db/SQLWhere.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandalib-db/src/main/java/fr/pandacube/lib/db/SQLWhere.java b/pandalib-db/src/main/java/fr/pandacube/lib/db/SQLWhere.java index 14a6760..e677474 100644 --- a/pandalib-db/src/main/java/fr/pandacube/lib/db/SQLWhere.java +++ b/pandalib-db/src/main/java/fr/pandacube/lib/db/SQLWhere.java @@ -69,7 +69,7 @@ public abstract class SQLWhere> { * @param whereExpr the raw SQL {@code WHERE} expression. * @return a SQL {@code WHERE} expression. */ - public SQLWhere expression(String whereExpr) { + public static > SQLWhere expression(String whereExpr) { return expression(whereExpr, List.of()); } @@ -79,7 +79,7 @@ public abstract class SQLWhere> { * @param params the parameters of the provided expression. * @return a SQL {@code WHERE} expression. */ - public SQLWhere expression(String whereExpr, List params) { + public static > SQLWhere expression(String whereExpr, List params) { return new SQLWhereCustomExpression<>(whereExpr, params); }