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 3711e6ea78
commit 7fd44d6733
1 changed files with 1 additions and 1 deletions

View File

@ -5141,7 +5141,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;