Bug #17670 | Eroneous empty record set returned using MAX and GROUP BY with unique key | ||
---|---|---|---|
Submitted: | 23 Feb 2006 13:58 | Modified: | 25 May 2006 10:36 |
Reporter: | Peter Myles | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.18, 5.0.19-bk | OS: | Linux (Linux, Windows) |
Assigned to: | Sergey Vojtovich | CPU Architecture: | Any |
[23 Feb 2006 13:58]
Peter Myles
[23 Feb 2006 19:40]
MySQL Verification Team
Testcase to repeat: bug17670_2.sql;
Attachment: bug17670_2.sql (text/x-delimtext), 13.34 KiB.
[23 Feb 2006 19:42]
MySQL Verification Team
repeated on 5.0.18 on Windows, and 5.0.19-bk on Linux, using my attached testcase.
[25 May 2006 10:36]
Sergey Vojtovich
This looks like expected behavior taking into account double fields. You should modify your query according to manual: http://dev.mysql.com/doc/refman/5.0/en/problems-with-float.html New query should look like: SELECT c1, MAX(c2) FROM t2 WHERE c2<2453775 AND c1>703912.99 AND c1<703913.01 GROUP BY c1;