HHH-17959 Apply concrete type to subqueries with single selection

This commit is contained in:
Marco Belladelli 2024-04-15 12:59:55 +02:00
parent f2f0e18da8
commit 224e8ca57a
1 changed files with 1 additions and 1 deletions

View File

@ -5256,7 +5256,7 @@ public class SemanticQueryBuilder<R> extends HqlParserBaseVisitor<Object> implem
final List<SqmSelection<?>> selections = subQuery.getQuerySpec().getSelectClause().getSelections();
if ( selections.size() == 1 ) {
subQuery.applyInferableType( selections.get( 0 ).getNodeType() );
subQuery.applyInferableType( selections.get( 0 ).getExpressible().getSqmType() );
}
return subQuery;