Bug #16908 | LEFT JOIN with a VIEW returns Unexpected Results | ||
---|---|---|---|
Submitted: | 30 Jan 2006 17:36 | Modified: | 2 Feb 2006 2:31 |
Reporter: | Darwin Fan | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.18-standard | OS: | Linux (Redhat Linux Release 9) |
Assigned to: | Igor Babaev | CPU Architecture: | Any |
[30 Jan 2006 17:36]
Darwin Fan
[2 Feb 2006 2:31]
Igor Babaev
With the current tree: mysql> select version() ; +--------------+ | version() | +--------------+ | 5.0.19-debug | +--------------+ 1 row in set (0.00 sec) I had correct result sets: mysql> select t1.Field_Val, t2.Field_Val FROM aaaa t1 LEFT JOIN bbbb t2 ON ( -> t1.ID = t2.ID AND t2.BeenDeleted != 'Y'); +-----------+-----------+ | Field_Val | Field_Val | +-----------+-----------+ | 10 | NULL | +-----------+-----------+ 1 row in set (0.00 sec) mysql> select t1.Field_Val, t2.Field_Val FROM aaaa t1 LEFT JOIN bbbb_v t2 ON ( -> t1.ID = t2.ID ); +-----------+-----------+ | Field_Val | Field_Val | +-----------+-----------+ | 10 | NULL | +-----------+-----------+ 1 row in set (0.00 sec)