Bug #9820 Rollup crash with min(varchar)
Submitted: 11 Apr 2005 15:45 Modified: 17 May 2005 20:38
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S2 (Serious)
Version:5.0.5-beta-debug OS:Linux (SUSE 9.2)
Assigned to: Jani Tolonen CPU Architecture:Any

[11 Apr 2005 15:45] Peter Gulutzan
Description:
If I have a table with a CHAR or VARCHAR column, and I say SELECT MIN(column) ... GROUP BY ... WITH ROLLUP, crash. Same thing if SELECT MAX(column). No problem if SELECT COUNT(column).

How to repeat:
mysql> create table t93 (s1 varchar(5));
Query OK, 0 rows affected (0.00 sec)

mysql> insert into t93 values ('Wall');
Query OK, 1 row affected (0.00 sec)

mysql> select min(s1) from t93 group by s1 with rollup;
ERROR 2013 (HY000): Lost connection to MySQL server during query
[6 May 2005 15:42] Jani Tolonen
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html
[17 May 2005 20:38] Paul DuBois
Noted in 5.0.6 changelog.