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

HAVING clause with variable and *, / math operators #5598

Closed
wants to merge 1 commit into from

Conversation

Jean85
Copy link
Contributor

@Jean85 Jean85 commented Jan 8, 2016

This is integrated and completed in #5599

I've produced a test for bug #4764

As this regression highlights, this bug happens only with the * and / math operators used in the HAVING clause with variables from the SELECT clause; + and - math operators are fine.

Input DQL:

SELECT COUNT(u.name) AS countName FROM Doctrine\Tests\Models\CMS\CmsUser u HAVING 1  / countName > 0

Expected:

SELECT COUNT(c0_.name) AS sclr_0 FROM cms_users c0_ HAVING 1 / sclr_0 > 0

Instead:

SELECT COUNT(c0_.name) AS sclr_0 FROM cms_users c0_ HAVING 1 / countName > 0

@deeky666 deeky666 changed the title [WIP][Regression] HAVING clause with variable and *, / math operators HAVING clause with variable and *, / math operators Jan 8, 2016
@Jean85
Copy link
Contributor Author

Jean85 commented Jan 14, 2016

Superseeded by #5598
Closing this, thanks @zeroedin-bill

@Ocramius
Copy link
Member

Linking #5599

@Ocramius Ocramius added this to the 2.5.5 milestone Jan 16, 2016
Ocramius added a commit that referenced this pull request Jan 16, 2016
…n-fix

Fix #5598 issue with /, * in DQL not translating query components properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants