HHH-17508 Fix using union queries as CTE in criteria
This commit is contained in:
parent
a0294c31fe
commit
5309d9d63b
|
@ -57,7 +57,8 @@ public class SqmCteTable<T> extends AnonymousTupleType<T> implements JpaCteCrite
|
|||
String name,
|
||||
SqmCteStatement<X> cteStatement,
|
||||
SqmSelectQuery<X> selectStatement) {
|
||||
final SqmSelectableNode<?>[] sqmSelectableNodes = selectStatement.getQuerySpec()
|
||||
final SqmSelectableNode<?>[] sqmSelectableNodes = selectStatement.getQueryPart()
|
||||
.getFirstQuerySpec()
|
||||
.getSelectClause()
|
||||
.getSelectionItems()
|
||||
.toArray( SqmSelectableNode[]::new );
|
||||
|
|
Loading…
Reference in New Issue