HHH-17959 Apply concrete type to subqueries with single selection
This commit is contained in:
parent
f2f0e18da8
commit
224e8ca57a
|
@ -5256,7 +5256,7 @@ public class SemanticQueryBuilder<R> extends HqlParserBaseVisitor<Object> implem
|
||||||
|
|
||||||
final List<SqmSelection<?>> selections = subQuery.getQuerySpec().getSelectClause().getSelections();
|
final List<SqmSelection<?>> selections = subQuery.getQuerySpec().getSelectClause().getSelections();
|
||||||
if ( selections.size() == 1 ) {
|
if ( selections.size() == 1 ) {
|
||||||
subQuery.applyInferableType( selections.get( 0 ).getNodeType() );
|
subQuery.applyInferableType( selections.get( 0 ).getExpressible().getSqmType() );
|
||||||
}
|
}
|
||||||
|
|
||||||
return subQuery;
|
return subQuery;
|
||||||
|
|
Loading…
Reference in New Issue