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

GH-2341 - Fix missing DISTINCT in count query bug. #2389

Closed

Conversation

DiegoKrupitza
Copy link
Contributor

The COUNT_MATCH did not consider line breaks after the from clause or the where clause. This lead to a no match scenario in the construction of the count query. With the fix we now consider line breaks/whitespaces after the from and where clause.

Closes #2341
Related tickets #2177

  • You have read the Spring Data contribution guidelines.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.

The `COUNT_MATCH` did not consider line breaks after the `from` clause or the `where` clause. This lead to a no match scenario in the construction of the count query. With the fix we now consider line breaks/whitespaces after the `from` and `where` clause.

Closes spring-projects#2341
Related tickets spring-projects#2177
@gregturn
Copy link
Contributor

Resolved via 2545e6d.

Thanks @DiegoKrupitza!

@gregturn gregturn closed this Mar 28, 2022
@gregturn gregturn added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 28, 2022
@gregturn gregturn added this to the 3.0 M4 (2022.0.0) milestone Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Count query removes distinct phrase if from part of JPA query contains newline character
3 participants