HHH-14533 Add test for issue

This commit is contained in:
Andrea Boriero 2024-12-10 13:30:02 +01:00 committed by Andrea Boriero
parent 0ee78b52f6
commit 87bab93d05
2 changed files with 2818 additions and 2825 deletions

View File

@ -1056,6 +1056,21 @@ abstract public class DialectFeatureChecks {
return getSqmFunctionRegistry( dialect ).findSetReturningFunctionDescriptor( functionName ) != null;
}
public static class SupportsSubqueryInSelect implements DialectFeatureCheck {
@Override
public boolean apply(Dialect dialect) {
return dialect.supportsSubqueryInSelect();
}
}
public static class SupportSubqueryAsLeftHandSideInPredicate implements DialectFeatureCheck {
@Override
public boolean apply(Dialect dialect) {
return dialect.supportsSubselectAsInPredicateLHS();
}
}
private static SqmFunctionRegistry getSqmFunctionRegistry(Dialect dialect) {
SqmFunctionRegistry sqmFunctionRegistry = FUNCTION_REGISTRIES.get( dialect );
if ( sqmFunctionRegistry == null ) {