Bug #3831 | SELECT a FROM WHERE a NOT IN (SELECT...) fails | ||
---|---|---|---|
Submitted: | 19 May 2004 22:33 | Modified: | 3 Jun 2004 18:32 |
Reporter: | Rob Blick | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.1 alpha | OS: | Linux (Redhat Linux 9) |
Assigned to: | CPU Architecture: | Any |
[19 May 2004 22:33]
Rob Blick
[19 May 2004 22:39]
MySQL Verification Team
Yes please send for the us the files for to make our life easy. BTW I guess this was already fixed on 4.1.2.
[20 May 2004 15:04]
Rob Blick
mysqldump of two tables that can be used to replicate the problem
Attachment: debugTestTables.sql (application/octet-stream, text), 26.96 KiB.
[20 May 2004 15:07]
Rob Blick
I've uploaded a .sql script called debugTestTables.sql. It creates and populates two simple tables. Afterwards, you can run the following two queries to see the problem: --the following should return 66 rows SELECT fieldA FROM tableA WHERE fieldA NOT IN (SELECT fieldB FROM tableB); --the following works correctly SELECT fieldA FROM tableA LEFT OUTER JOIN tableB ON fieldA = fieldB WHERE fieldB IS NULL;
[20 May 2004 15:12]
Rob Blick
Miguel- You mentioned this was fixed on 4.1.2. I just checked the downloads page and didn't see 4.1.2. Has it not been released yet?
[3 Jun 2004 15:46]
Rob Blick
Just found 4.1.2 alpha on the downloads page. Tried it - the above query now works. This bug report can be closed :-)
[3 Jun 2004 18:32]
MySQL Verification Team
Thank you for the feedback.