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 22, 2024
1 parent 83aeb4b commit 7a2eea0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,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 7a2eea0

Please sign in to comment.