Bug #55810 | incorrect max aggregate calculated | ||
---|---|---|---|
Submitted: | 6 Aug 2010 21:07 | Modified: | 7 Aug 2010 12:52 |
Reporter: | sergei z | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S1 (Critical) |
Version: | 5.5.5-m3 | OS: | Windows (Vista x64 and Server 2008 x64) |
Assigned to: | CPU Architecture: | Any |
[6 Aug 2010 21:07]
sergei z
[7 Aug 2010 1:46]
MySQL Verification Team
Thank you for the bug report. Could you please print here the output you got for both queries. Thanks in advance.
[7 Aug 2010 2:18]
sergei z
=========================================================== RESULT FROM MySQL 5.5.5-m3 =========================================================== +-----------+-------------------+ | productid | max(invoice.date) | +-----------+-------------------+ | 6660 | 2010-04-30 | -- WRONG!!! +-----------+-------------------+ 1 row in set (0.00 sec) +-----------+-------------------+ | productid | max(invoice.date) | +-----------+-------------------+ | 6660 | 2010-05-31 | +-----------+-------------------+ 1 row in set (0.00 sec) =========================================================== RESULT FROM MSSQL 2008 Express =========================================================== productid ----------- ---------------- 6660 2010-05-31 (1 rows affected) productid ----------- ---------------- 6660 2010-05-31 (1 rows affected) =========================================================== RESULT FROM sqlite 3.7.0 =========================================================== sqlite> select line.productid, max(invoice.date) ...> from line join invoice on line.invoiceid=invoice.id ...> where line.productid=6660 ...> group by line.productid; 6660|2010-05-31 sqlite> select line.productid, max(invoice.date) ...> from line join invoice on line.invoiceid=invoice.id ...> group by line.productid ...> having line.productid=6660; 6660|2010-05-31
[7 Aug 2010 12:52]
Sveta Smirnova
Thank you for the feedback. I was able to repeat the problem with mysql-5.5.5-m3-linux2.6-x86_64.tar.gz package, but was not able with current development sources. So looks like this occasionally fixed. Please wait next release.