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 {
202202 // any function call including parameters within the brackets
203203 builder .append ("\\ w+\\ s*\\ ([\\ w\\ .,\\ s'=:;\\ \\ ?]+\\ )" );
204204 // the potential alias
205- builder .append ("\\ s+(?:as|AS )+\\ s+([\\ w\\ .]+)" );
205+ builder .append ("\\ s+(?:as)+\\ s+([\\ w\\ .]+)" );
206206
207- FUNCTION_PATTERN = compile (builder .toString ());
207+ FUNCTION_PATTERN = compile (builder .toString (), CASE_INSENSITIVE );
208208
209209 builder = new StringBuilder ();
210210 builder .append ("[^\\ s\\ (\\ )]+" ); // No white char no bracket
211211 builder .append ("\\ s+(?:as)+\\ s+([\\ w\\ .]+)" ); // the potential alias
212212
213- FIELD_ALIAS_PATTERN = compile (builder .toString ());
213+ FIELD_ALIAS_PATTERN = compile (builder .toString (), CASE_INSENSITIVE );
214214 }
215215
216216 /**
You can’t perform that action at this time.
0 commit comments