HHH-18339 Set support filter clause to True for H2

This commit is contained in:
Samuel Guillemet 2024-07-05 16:15:11 +02:00 committed by Christian Beikov
parent e2e1661845
commit bb90a84505
2 changed files with 11 additions and 0 deletions

View File

@ -411,4 +411,9 @@ public class H2LegacySqlAstTranslator<T extends JdbcOperation> extends AbstractS
protected boolean supportsJoinInMutationStatementSubquery() {
return false;
}
@Override
public boolean supportsFilterClause() {
return getDialect().getVersion().isSameOrAfter( 1, 4, 197 );
}
}

View File

@ -384,4 +384,10 @@ public class H2SqlAstTranslator<T extends JdbcOperation> extends SqlAstTranslato
protected boolean supportsJoinInMutationStatementSubquery() {
return false;
}
@Override
public boolean supportsFilterClause() {
// Introduction of FILTER clause https://github.com/h2database/h2database/commit/9e6dbf3baa57000f670826ede431dc7fb4cd9d9c
return true;
}
}