Skip to content

Commit

Permalink
Fix SQL generation for query with sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
IAM20 committed Nov 27, 2024
1 parent de0e87c commit f67a480
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ private SelectBuilder.SelectOrdered applyQueryOnSelect(Query query, MapSqlParame

if (query.isSorted()) {
List<OrderByField> sort = this.queryMapper.getMappedSort(table, query.getSort(), entity);
selectOrdered = selectBuilder.orderBy(sort);
selectOrdered = selectOrdered.orderBy(sort);
}

SelectBuilder.SelectLimitOffset limitable = (SelectBuilder.SelectLimitOffset)selectOrdered;
Expand Down

0 comments on commit f67a480

Please sign in to comment.