In 5.5, a crashing, regression bug exists if you use SELECT COUNT(DISTINCT) *and* one of the WHERE operands is in the Primary Key (or just a unique index).
This simple crash (if only one row is in the table) will crash mysqld.
Of course I’ve filed a bug report, but that has been nearly 3 months and no updates yet.
Here is the bug I filed (which you won’t be able to view):
http://bugs.mysql.com/bug.php?id=61842
Really, the only thing that happened to my bug report was that it was designated a duplicate of another bug (which we also cannot view):
http://bugs.mysql.com/bug.php?id=61101
Based on the id, and the submitted dates of bugs 61100 and 61102, this initial bug (61101) was filed on May 9, 2011. So, in fact, this bug has been present for over …
[Read more]