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
This commit is contained in:
parent
a03d22190d
commit
4b52bff090
|
@ -279,7 +279,7 @@ public abstract class Dialect implements ConversionContext, TypeContributor, Fun
|
|||
private static final Pattern ESCAPE_CLOSING_COMMENT_PATTERN = Pattern.compile( "\\*/" );
|
||||
private static final Pattern ESCAPE_OPENING_COMMENT_PATTERN = Pattern.compile( "/\\*" );
|
||||
private static final Pattern QUERY_PATTERN = Pattern.compile(
|
||||
"^\\s*(select\\b.+?\\bfrom\\b.+?)(\\b(?:natural )?(?:left |right )?(?:inner |outer )?join.+?\\b)?(\\bwhere\\b.+?)$");
|
||||
"^\\s*(select\\b.+?\\bfrom\\b.+?)(\\b(?:natural )?(?:left |right |full )?(?:inner |outer |cross )?join.+?\\b)?(\\bwhere\\b.+?)$");
|
||||
|
||||
private static final CoreMessageLogger LOG = Logger.getMessageLogger( MethodHandles.lookup(), CoreMessageLogger.class, Dialect.class.getName() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue