Skip to content

Commit 13a84c0

Browse files
JingBhmp911de
authored andcommitted
Fix double-sorting usung limit of FetchableFluentQueryBySpecification.
Closes #3600 Original pull request: #3601
1 parent a48a0b7 commit 13a84c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/FetchableFluentQueryBySpecification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public FetchableFluentQuery<R> limit(int limit) {
9595

9696
Assert.isTrue(limit >= 0, "Limit must not be negative");
9797

98-
return new FetchableFluentQueryBySpecification<>(spec, entityType, resultType, this.sort.and(sort), limit,
98+
return new FetchableFluentQueryBySpecification<>(spec, entityType, resultType, sort, limit,
9999
properties, finder, scroll, countOperation, existsOperation, entityManager);
100100
}
101101

0 commit comments

Comments
 (0)