HHH-17959 Apply concrete type to subqueries with single selection
This commit is contained in:
parent
3711e6ea78
commit
7fd44d6733
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue