Bug #29421 | MySQL allows mixing of GROUP columns with no GROUP columns in complex terms | ||
---|---|---|---|
Submitted: | 28 Jun 2007 13:43 | Modified: | 28 Jun 2007 18:56 |
Reporter: | Szymon Nowakowski | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 5.1.14-beta/5.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | complex terms, GROUP columns |
[28 Jun 2007 13:43]
Szymon Nowakowski
[28 Jun 2007 18:56]
MySQL Verification Team
Thank you for the bug report. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.1.21-beta-debug-log Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create table tab (x int); Query OK, 0 rows affected (0.09 sec) mysql> select x + max(x) from tab; +------------+ | x + max(x) | +------------+ | NULL | +------------+ 1 row in set (0.11 sec) mysql> select x, max(x) from tab; ERROR 1140 (42000): Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause mysql>