-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Using Pagination with CTE query generates wrong countQuery #3752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Spring Data requires JSqlParser for overly complex queries that use functions or more advanced features beyond a simple |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
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: