From 110ae8ad6d0a1f2ac11f8542bd23d7b795f325f6 Mon Sep 17 00:00:00 2001 From: radovanradic Date: Tue, 26 Nov 2024 09:31:01 +0100 Subject: [PATCH] Simplified FOR UPDATE matching regex --- .../data/processor/visitors/finders/RawQueryMethodMatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-processor/src/main/java/io/micronaut/data/processor/visitors/finders/RawQueryMethodMatcher.java b/data-processor/src/main/java/io/micronaut/data/processor/visitors/finders/RawQueryMethodMatcher.java index f54ce7bda1..08777ad390 100644 --- a/data-processor/src/main/java/io/micronaut/data/processor/visitors/finders/RawQueryMethodMatcher.java +++ b/data-processor/src/main/java/io/micronaut/data/processor/visitors/finders/RawQueryMethodMatcher.java @@ -62,7 +62,7 @@ public class RawQueryMethodMatcher implements MethodMatcher { private static final Pattern UPDATE_PATTERN = Pattern.compile(".*\\bupdate\\b.*"); - private static final Pattern FOR_UPDATE_PATTERN = Pattern.compile("\\bfor\\s+update\\b"); + private static final Pattern FOR_UPDATE_PATTERN = Pattern.compile("for\\s+update"); private static final Pattern DELETE_PATTERN = Pattern.compile(".*\\bdelete\\b.*"); private static final Pattern INSERT_PATTERN = Pattern.compile(".*\\binsert\\b.*"); private static final Pattern RETURNING_PATTERN = Pattern.compile(".*\\breturning\\b.*");