Bug #35628 | 5.0.52+ undocumented incompatible change in default GROUP BY behavior | ||
---|---|---|---|
Submitted: | 28 Mar 2008 1:41 | Modified: | 3 Nov 2008 17:48 |
Reporter: | Sean Pringle | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.0.52 | OS: | Any |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[28 Mar 2008 1:41]
Sean Pringle
[1 May 2008 13:55]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. The change in behavior was a result of the fix for Bug#31794. I have updated the changelog for that bug to indicate how the server behavior changes: This bugfix results in the following behavior: - There is a check against mixing group and non-group columns *only* if ONLY_FULL_GROUP_BY is enabled. - This check is done both for the select list and for the HAVING clause if there is one. This behavior differs from previous versions as follows: - Previously, the HAVING clause was not checked when ONLY_FULL_GROUP_BY was enabled; now it is checked. - Previously, the select list was checked even when ONLY_FULL_GROUP_BY was not enabled; now it is checked only when ONLY_FULL_GROUP_BY is enabled.