Skip to content

Commit 735b1bc

Browse files
sjlzcjschauder
authored andcommitted
DATAJDBC-614 - Correctly combines sorting from sort and page.
Original pull request: #227.
1 parent 6a9aa51 commit 735b1bc

File tree

1 file changed

+2
-1
lines changed
  • spring-data-relational/src/main/java/org/springframework/data/relational/core/query

1 file changed

+2
-1
lines changed

spring-data-relational/src/main/java/org/springframework/data/relational/core/query/Query.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ public Query with(Pageable pageable) {
175175

176176
assertNoCaseSort(pageable.getSort());
177177

178-
return new Query(this.criteria, this.columns, this.sort.and(sort), pageable.getPageSize(), pageable.getOffset());
178+
return new Query(this.criteria, this.columns, this.sort.and(pageable.getSort()), pageable.getPageSize(),
179+
pageable.getOffset());
179180
}
180181

181182
/**

0 commit comments

Comments
 (0)