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 @@ -202,15 +202,15 @@ public abstract class QueryUtils {
202
202
// any function call including parameters within the brackets
203
203
builder .append ("\\ w+\\ s*\\ ([\\ w\\ .,\\ s'=:;\\ \\ ?]+\\ )" );
204
204
// the potential alias
205
- builder .append ("\\ s+(?:as|AS )+\\ s+([\\ w\\ .]+)" );
205
+ builder .append ("\\ s+(?:as)+\\ s+([\\ w\\ .]+)" );
206
206
207
- FUNCTION_PATTERN = compile (builder .toString ());
207
+ FUNCTION_PATTERN = compile (builder .toString (), CASE_INSENSITIVE );
208
208
209
209
builder = new StringBuilder ();
210
210
builder .append ("[^\\ s\\ (\\ )]+" ); // No white char no bracket
211
211
builder .append ("\\ s+(?:as)+\\ s+([\\ w\\ .]+)" ); // the potential alias
212
212
213
- FIELD_ALIAS_PATTERN = compile (builder .toString ());
213
+ FIELD_ALIAS_PATTERN = compile (builder .toString (), CASE_INSENSITIVE );
214
214
}
215
215
216
216
/**
You can’t perform that action at this time.
0 commit comments