HHH-15433 Fix a potentiatl index out of bounds exception
This commit is contained in:
parent
2f176f79bc
commit
a69912dd9c
|
@ -181,7 +181,7 @@ public abstract class SqmQueryPart<T> implements SqmVisitableNode, JpaQueryPart<
|
||||||
public abstract void validateQueryStructureAndFetchOwners();
|
public abstract void validateQueryStructureAndFetchOwners();
|
||||||
|
|
||||||
public void appendHqlString(StringBuilder sb) {
|
public void appendHqlString(StringBuilder sb) {
|
||||||
if ( orderByClause == null ) {
|
if ( orderByClause == null || orderByClause.getSortSpecifications().isEmpty() ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sb.append( " order by " );
|
sb.append( " order by " );
|
||||||
|
|
Loading…
Reference in New Issue