HHH-10729 HHH-9021 HHH-10230 - Fix Issue with literals in select expression
(cherry picked from commit e71af130f0
)
This commit is contained in:
parent
903a3befb3
commit
7a17840c16
|
@ -425,7 +425,7 @@ selectExpr
|
||||||
| functionCall
|
| functionCall
|
||||||
| count
|
| count
|
||||||
| collectionFunction // elements() or indices()
|
| collectionFunction // elements() or indices()
|
||||||
| literal
|
| constant
|
||||||
| arithmeticExpr
|
| arithmeticExpr
|
||||||
| logicalExpr
|
| logicalExpr
|
||||||
| parameter
|
| parameter
|
||||||
|
|
|
@ -110,10 +110,7 @@ public class CriteriaQueryImpl<T> extends AbstractNode implements CriteriaQuery<
|
||||||
selection = ( Selection<? extends T> ) criteriaBuilder().tuple( selections );
|
selection = ( Selection<? extends T> ) criteriaBuilder().tuple( selections );
|
||||||
}
|
}
|
||||||
else if ( getResultType().isArray() ) {
|
else if ( getResultType().isArray() ) {
|
||||||
selection = ( Selection<? extends T> ) criteriaBuilder().array(
|
selection = criteriaBuilder().array( getResultType(), selections );
|
||||||
( Class<? extends Object[]> ) getResultType(),
|
|
||||||
selections
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
else if ( Object.class.equals( getResultType() ) ) {
|
else if ( Object.class.equals( getResultType() ) ) {
|
||||||
switch ( selections.size() ) {
|
switch ( selections.size() ) {
|
||||||
|
|
Loading…
Reference in New Issue