Skip to content

Commit 4b52bff

Browse files
rguihardbeikov
authored andcommitted
HHH-18916: regex completion
According to mysql and postgresql, add "cross" and "full" keywords in the regex https://dev.mysql.com/doc/refman/8.4/en/join.html https://www.postgresql.org/docs/current/queries-table-expressions.html#id-1.5.6.6.5.6.4.3.1.1
1 parent a03d221 commit 4b52bff

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public abstract class Dialect implements ConversionContext, TypeContributor, Fun
279279
private static final Pattern ESCAPE_CLOSING_COMMENT_PATTERN = Pattern.compile( "\\*/" );
280280
private static final Pattern ESCAPE_OPENING_COMMENT_PATTERN = Pattern.compile( "/\\*" );
281281
private static final Pattern QUERY_PATTERN = Pattern.compile(
282-
"^\\s*(select\\b.+?\\bfrom\\b.+?)(\\b(?:natural )?(?:left |right )?(?:inner |outer )?join.+?\\b)?(\\bwhere\\b.+?)$");
282+
"^\\s*(select\\b.+?\\bfrom\\b.+?)(\\b(?:natural )?(?:left |right |full )?(?:inner |outer |cross )?join.+?\\b)?(\\bwhere\\b.+?)$");
283283

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

0 commit comments

Comments
 (0)