Bug #70461 incorrect select max not null
| Submitted: | 29 Sep 2013 2:52 | Modified: | 8 Oct 2013 19:08 |
|---|---|---|---|
| Reporter: | Patrik pomelli | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: Data Types | Severity: | S2 (Serious) |
| Version: | 5.5.20 | OS: | Windows (xp32) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | query max | ||
[29 Sep 2013 2:52]
Patrik pomelli
[8 Oct 2013 19:08]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php You use aggregate function MAX, select other column and do not use GROUP BY clause. MySQL allows such queries, but does not guarantee which rows will be returned: http://dev.mysql.com/doc/refman/5.6/en/server-sql-mode.html#sqlmode_only_full_group_by
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.