From 152106e1ffcdaa121da847a2de30758f02aeff4b Mon Sep 17 00:00:00 2001 From: Gerrit Meier Date: Fri, 23 May 2025 13:47:48 +0200 Subject: [PATCH] Adjust the deprecation pattern for filtering. With 2025.04 the message regarding deprecated `id` has changed and will now not be matched by the previous pattern anymore. This change adjusts the pattern to match old and new style. Signed-off-by: Gerrit Meier --- .../org/springframework/data/neo4j/core/ResultSummaries.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/neo4j/core/ResultSummaries.java b/src/main/java/org/springframework/data/neo4j/core/ResultSummaries.java index 3fa646205..16f455fde 100644 --- a/src/main/java/org/springframework/data/neo4j/core/ResultSummaries.java +++ b/src/main/java/org/springframework/data/neo4j/core/ResultSummaries.java @@ -50,7 +50,7 @@ final class ResultSummaries { private static final LogAccessor cypherSecurityNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.security")); private static final LogAccessor cypherTopologyNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.topology")); - private static final Pattern DEPRECATED_ID_PATTERN = Pattern.compile("(?im)The query used a deprecated function: `id`\\."); + private static final Pattern DEPRECATED_ID_PATTERN = Pattern.compile("(?im)The query used a deprecated function[\\.:] \\(?[`']id.+"); /** * Does some post-processing on the giving result summary, especially logging all notifications