You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application, this is causing duplicate order by clause to be included in the SQL generated like order by q1_0."id" desc,q1_0."id" desc, as I call .sortBy first, and then .limit.
Of course, it's easy to fix on the application's side by calling .limit first, but I think this is a bug in the framework, as the other class FetchableFluentQueryByPredicate implementing the same interface does not have this behavior.
The text was updated successfully, but these errors were encountered:
As this code in
FetchableFluentQueryBySpecification
shows, adding alimit
applies the current sorting again.spring-data-jpa/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/FetchableFluentQueryBySpecification.java
Lines 96 to 103 in b00220b
In my application, this is causing duplicate
order by
clause to be included in the SQL generated likeorder by q1_0."id" desc,q1_0."id" desc
, as I call.sortBy
first, and then.limit
.Of course, it's easy to fix on the application's side by calling
.limit
first, but I think this is a bug in the framework, as the other classFetchableFluentQueryByPredicate
implementing the same interface does not have this behavior.The text was updated successfully, but these errors were encountered: