Bug #4792 lower_case_table_names does not resolve db.tbl.column in SELECT list
Submitted: 28 Jul 2004 17:37 Modified: 6 Sep 2004 20:30
Reporter: Dean Ellis Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.0.21 OS:Microsoft Windows (Windows)
Assigned to: Reggie Burnett

[28 Jul 2004 17:37] Dean Ellis
Description:
lower_case_table_names=1 does not properly compare database names for fully qualified columns in the SELECT list.

How to repeat:
USE test;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 ( a int );
SELECT TEST.t1.* FROM TEST.t1;
DROP TABLE t1;

Suggested fix:
n/a
[25 Aug 2004 15:33] Reggie Burnett
Changeset revision 1.1990

Added block of code to lowercase the database name in insert_fields in the case that lower_case_table_names == 1.
[6 Sep 2004 20:30] Sergei Golubchik
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.0.21