Bug #6658 MAX(column) returns incorrect coercibility
Submitted: 16 Nov 2004 11:02 Modified: 19 Nov 2004 16:34
Reporter: Alexander Barkov
Status: Closed
Category:Server Severity:S3 (Non-critical)
Version:4.1.x OS:Any (any)
Assigned to: Alexander Barkov Target Version:

[16 Nov 2004 11:02] Alexander Barkov
Description:
MAX(column) returns a wrong result: 3 instead of 2.

How to repeat:
create table t1 (a char(10));
insert into t1 values ('a'),('b'),('c');
select coercibility(max(a)) from t1;
coercibility(max(a))
3
[19 Nov 2004 16:34] Alexander Barkov
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

Additional info:

fixed in 4.1.8