FindAll by Pageable the countQuery was missing condition #3635
Labels
status: feedback-provided
Feedback has been provided
status: waiting-for-triage
An issue we've not yet triaged
I am using
SpringBoot-Starter-Data-JPA-Version: 3.3.3
. When I usePage<T> findAll(@Nullable Specification<T> spec, Pageable pageable)
, I will get 2 queries. The first query is correct, but the second query, with it's use to count total elements was missing a condition..The first query SQL result:
The second query, use to count total elements result:
The condition
and w1_0.status in (?, ?, ?, ?)
was missing in the countQuerySo when I try to use findAll() to pageable will get incorrect result.
The text was updated successfully, but these errors were encountered: