File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -195,15 +195,15 @@ public abstract class QueryUtils {
195
195
// any function call including parameters within the brackets
196
196
builder .append ("\\ w+\\ s*\\ ([\\ w\\ .,\\ s'=:;\\ \\ ?]+\\ )" );
197
197
// the potential alias
198
- builder .append ("\\ s+(?:as|AS )+\\ s+([\\ w\\ .]+)" );
198
+ builder .append ("\\ s+(?:as)+\\ s+([\\ w\\ .]+)" );
199
199
200
- FUNCTION_PATTERN = compile (builder .toString ());
200
+ FUNCTION_PATTERN = compile (builder .toString (), CASE_INSENSITIVE );
201
201
202
202
builder = new StringBuilder ();
203
203
builder .append ("[^\\ s\\ (\\ )]+" ); // No white char no bracket
204
204
builder .append ("\\ s+(?:as)+\\ s+([\\ w\\ .]+)" ); // the potential alias
205
205
206
- FIELD_ALIAS_PATTERN = compile (builder .toString ());
206
+ FIELD_ALIAS_PATTERN = compile (builder .toString (), CASE_INSENSITIVE );
207
207
}
208
208
209
209
/**
You can’t perform that action at this time.
0 commit comments