Skip to content

Commit 855d84f

Browse files
committed
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 <[email protected]>
1 parent ffc8be9 commit 855d84f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/neo4j/core/ResultSummaries.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class ResultSummaries {
5050
private static final LogAccessor cypherSecurityNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.security"));
5151
private static final LogAccessor cypherTopologyNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.topology"));
5252

53-
private static final Pattern DEPRECATED_ID_PATTERN = Pattern.compile("(?im)The query used a deprecated function: `id`\\.");
53+
private static final Pattern DEPRECATED_ID_PATTERN = Pattern.compile("(?im)The query used a deprecated function[\\.:] \\(?[`']id.+");
5454

5555
/**
5656
* Does some post-processing on the giving result summary, especially logging all notifications

0 commit comments

Comments
 (0)