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 <meistermeier@gmail.com>
This commit is contained in:
Gerrit Meier
2025-05-23 13:47:48 +02:00
parent 1d8253ca53
commit 152106e1ff

View File

@@ -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