Skip to content

Commit 9178e32

Browse files
dnovitskimarko-bekhta
authored andcommitted
HHH-19697 Use case-insensitive Dialect query pattern matching
1 parent 47db687 commit 9178e32

File tree

1 file changed

+2
-1
lines changed
  • hibernate-core/src/main/java/org/hibernate/dialect

1 file changed

+2
-1
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ public abstract class Dialect implements ConversionContext, TypeContributor, Fun
336336
private static final Pattern ESCAPE_CLOSING_COMMENT_PATTERN = Pattern.compile( "\\*/" );
337337
private static final Pattern ESCAPE_OPENING_COMMENT_PATTERN = Pattern.compile( "/\\*" );
338338
private static final Pattern QUERY_PATTERN = Pattern.compile(
339-
"^\\s*(select\\b.+?\\bfrom\\b.+?)(\\b(?:natural )?(?:left |right |full )?(?:inner |outer |cross )?join.+?\\b)?(\\bwhere\\b.+?)$");
339+
"^\\s*(select\\b.+?\\bfrom\\b.+?)(\\b(?:natural )?(?:left |right |full )?(?:inner |outer |cross )?join.+?\\b)?(\\bwhere\\b.+?)$",
340+
Pattern.CASE_INSENSITIVE);
340341

341342
private static final CoreMessageLogger LOG = Logger.getMessageLogger( MethodHandles.lookup(), CoreMessageLogger.class, Dialect.class.getName() );
342343

0 commit comments

Comments
 (0)