Bug #26550 | LEFT JOIN conditions sometimes case sensitive | ||
---|---|---|---|
Submitted: | 22 Feb 2007 0:40 | Modified: | 22 Feb 2007 2:55 |
Reporter: | Franz Hänel | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: General | Severity: | S2 (Serious) |
Version: | 5.0.33 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[22 Feb 2007 0:40]
Franz Hänel
[22 Feb 2007 0:44]
Franz Hänel
Dropping the WHERE expression also makes it work mysql> SELECT * FROM t1 LEFT JOIN t2 ON (t1.currency1=t2.currency2); +-----------+-----------+ | currency1 | currency2 | +-----------+-----------+ | eur | EUR | +-----------+-----------+ 1 row in set (0.00 sec)
[22 Feb 2007 2:55]
MySQL Verification Team
Thank you for the bug report. Duplicate as Paul commented and already fixed: [miguel@skybr 5.0]$ bin/mysql -uroot test Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.0.36-debug Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> DROP TABLE IF EXISTS t1; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> DROP TABLE IF EXISTS t2; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> CREATE TABLE `t1` (`currency1` char(3) NOT NULL) ENGINE=MyISAM DEFAULT -> CHARSET=latin1; Query OK, 0 rows affected (0.38 sec) mysql> INSERT INTO t1 VALUES('eur'); Query OK, 1 row affected (0.01 sec) mysql> CREATE TABLE `t2` (`currency2` char(3) NOT NULL) ENGINE=MyISAM DEFAULT -> CHARSET=latin1; Query OK, 0 rows affected (0.49 sec) mysql> INSERT INTO t2 VALUES('EUR'); Query OK, 1 row affected (0.00 sec) mysql> SELECT * FROM t1 LEFT JOIN t2 ON (t1.currency1=t2.currency2) WHERE -> currency1='eur'; +-----------+-----------+ | currency1 | currency2 | +-----------+-----------+ | eur | EUR | +-----------+-----------+ 1 row in set (0.42 sec) mysql>