Skip to content

Commit

Permalink
Simplified FOR UPDATE matching regex
Browse files Browse the repository at this point in the history
  • Loading branch information
radovanradic committed Nov 26, 2024
1 parent 867c91c commit 110ae8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*");
Expand Down

0 comments on commit 110ae8a

Please sign in to comment.