Skip to content

Commit 7fd44d6

Browse files
committed
HHH-17959 Apply concrete type to subqueries with single selection
1 parent 3711e6e commit 7fd44d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5141,7 +5141,7 @@ public SqmSubQuery<?> visitSubquery(HqlParser.SubqueryContext ctx) {
51415141

51425142
final List<SqmSelection<?>> selections = subQuery.getQuerySpec().getSelectClause().getSelections();
51435143
if ( selections.size() == 1 ) {
5144-
subQuery.applyInferableType( selections.get( 0 ).getNodeType() );
5144+
subQuery.applyInferableType( selections.get( 0 ).getExpressible().getSqmType() );
51455145
}
51465146

51475147
return subQuery;

0 commit comments

Comments
 (0)