mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-17959 Apply concrete type to subqueries with single selection
This commit is contained in:
parent
f2f0e18da8
commit
224e8ca57a
@ -5256,7 +5256,7 @@ public SqmSubQuery<?> visitSubquery(HqlParser.SubqueryContext ctx) {
|
||||
|
||||
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…
x
Reference in New Issue
Block a user