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: dynamic property group by with alias #3504

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

AlexWagner
Copy link
Contributor

If I use formula in dto queries e.g. concat(...) and i want count them,
I have to specify an alias to map it to the dto.
Then this alias will be put into the group by clause additionally to the formula, this leads to an incorrect query.
see the test

I have implemented an easy fix for this.

@rbygrave
Copy link
Member

Nice work !!

@rbygrave rbygrave added this to the 14.8.0 milestone Oct 24, 2024
@rbygrave rbygrave added the bug label Oct 24, 2024
rbygrave added a commit that referenced this pull request Oct 24, 2024
@rbygrave rbygrave merged commit d8f321d into ebean-orm:master Oct 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants