From 44f96b86f7477d845c8f3bebf06f3b31cf648868 Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Wed, 11 Sep 2024 10:24:58 +0200 Subject: [PATCH] Upgrade to jsqlparser 5.0. `ExpressionList` is now extending `ArrayList` requiring minor code changes. Closes #1878 --- spring-data-relational/pom.xml | 2 +- .../core/sqlgeneration/AnalyticFunctionPattern.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-data-relational/pom.xml b/spring-data-relational/pom.xml index 0287ece7439..6be1155d38e 100644 --- a/spring-data-relational/pom.xml +++ b/spring-data-relational/pom.xml @@ -20,7 +20,7 @@ spring.data.relational ${basedir}/.. - 4.9 + 5.0 diff --git a/spring-data-relational/src/test/java/org/springframework/data/relational/core/sqlgeneration/AnalyticFunctionPattern.java b/spring-data-relational/src/test/java/org/springframework/data/relational/core/sqlgeneration/AnalyticFunctionPattern.java index a55d3e97a29..4dd43968ea1 100644 --- a/spring-data-relational/src/test/java/org/springframework/data/relational/core/sqlgeneration/AnalyticFunctionPattern.java +++ b/spring-data-relational/src/test/java/org/springframework/data/relational/core/sqlgeneration/AnalyticFunctionPattern.java @@ -57,8 +57,8 @@ boolean matches(AnalyticExpression analyticExpression) { } private boolean partitionByMatches(AnalyticExpression analyticExpression) { - - List expressions = analyticExpression.getPartitionExpressionList().getExpressions(); + + List expressions = analyticExpression.getPartitionExpressionList(); return expressions != null && expressions.size() == 1 && partitionBy.matches(expressions.get(0)); }