Using Pagination with CTE query generates wrong countQuery #3752
Labels
status: feedback-reminder
We've sent a reminder that we need additional information before we can continue
status: waiting-for-feedback
We need additional information before we can continue
status: waiting-for-triage
An issue we've not yet triaged
Hello,
I am using the latest
spring-data-jpa:3.4.2
with postgresql and faced the below issue:using two CTE Queries with native query enabled as below:
but hibernate executes the following query
and throws the following error:
CAUSE:
It changed the first CTE with:
Workaround:
I was able to workaround the issue by specifying an explicit countQuery. Thanks to: #3726 (comment)
The text was updated successfully, but these errors were encountered: