Skip to content
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

Fix getCount for queries with subqueries #562

Merged
merged 1 commit into from
May 9, 2024

Conversation

nscuro
Copy link
Collaborator

@nscuro nscuro commented May 7, 2024

The getCount methods were refactored to not modify the original Query object in #552. Neither JDO nor DataNucleus offer a mechanism to copy a Query object 1:1, hence a new object was created instead.

This however broke getCount for queries that make use of subqueries (and potentially other advanced features).

This change reverts it back to temporarily modify the query object again.

The `getCount` methods were refactored to not modify the original `Query` object in stevespringett#552. Neither JDO nor DataNucleus offer a mechanism to copy a `Query` object 1:1, hence a new object was created instead.

This however broke `getCount` for queries that make use of subqueries (and potentially other advanced features).

This change reverts it back to temporarily modify the query object again.

Signed-off-by: nscuro <[email protected]>
@stevespringett stevespringett merged commit 69fc8cd into stevespringett:master May 9, 2024
2 checks passed
@nscuro nscuro deleted the fix-getcount branch May 15, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants