Bug #21037 | View With group by -- sql-mode : Only_Full_Group_By | ||
---|---|---|---|
Submitted: | 13 Jul 2006 14:09 | Modified: | 13 Aug 2006 18:52 |
Reporter: | saravanan Amoor | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S1 (Critical) |
Version: | 5.0.17 | OS: | Windows (XP) |
Assigned to: | CPU Architecture: | Any |
[13 Jul 2006 14:09]
saravanan Amoor
[13 Jul 2006 18:52]
Valeriy Kravchuk
Thank you for a problem report. It is not a bug, according to the manual (http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html): "ONLY_FULL_GROUP_BY Do not allow queries for which the SELECT list refers to non-aggregated columns that are not named in the GROUP BY clause. The following query is invalid with this mode enabled because address is not named in the GROUP BY clause: SELECT name, address, MAX(age) FROM t GROUP BY name; As of MySQL 5.0.23, this mode also restricts references to non-aggregated columns in the HAVING clause that are not named in the GROUP BY clause." If it worked in select, with this sql mode, in 5.0.17, it can be because of a bug in that old 5.0.17 version. Please, try to repeat with a newer version, 5.0.22, and inform about the results.
[13 Aug 2006 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".