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 @@ -193,15 +193,15 @@ public abstract class QueryUtils {
193193 // any function call including parameters within the brackets
194194 builder .append ("\\ w+\\ s*\\ ([\\ w\\ .,\\ s'=:;\\ \\ ?]+\\ )" );
195195 // the potential alias
196- builder .append ("\\ s+(?:as|AS )+\\ s+([\\ w\\ .]+)" );
196+ builder .append ("\\ s+(?:as)+\\ s+([\\ w\\ .]+)" );
197197
198- FUNCTION_PATTERN = compile (builder .toString ());
198+ FUNCTION_PATTERN = compile (builder .toString (), CASE_INSENSITIVE );
199199
200200 builder = new StringBuilder ();
201201 builder .append ("[^\\ s\\ (\\ )]+" ); // No white char no bracket
202202 builder .append ("\\ s+(?:as)+\\ s+([\\ w\\ .]+)" ); // the potential alias
203203
204- FIELD_ALIAS_PATTERN = compile (builder .toString ());
204+ FIELD_ALIAS_PATTERN = compile (builder .toString (), CASE_INSENSITIVE );
205205 }
206206
207207 /**
You can’t perform that action at this time.
0 commit comments