Bug #33001 Select limit on the "NOT IN" clause
Submitted: 5 Dec 2007 14:47 Modified: 6 Dec 2007 16:27
Reporter: Michael van Rensburg Email Updates:
Status: Duplicate Impact on me:
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.22 OS:Linux (Centos)
Assigned to: CPU Architecture:Any
Tags: NOT IN, SELECT, where

[5 Dec 2007 14:47] Michael van Rensburg
Could not get a result set return when using a certain size "not in" select list, e.g.
"select id from test1 where cola not in (select colb from test2)". 

How to repeat:
Everything was working OK until presumably we reached a value somwhere around 658 rows from the second select list. I would create a second table which returns more than this value.

Suggested fix:
It was fixed by modify the second select to: "select colb from test2 where colb like '%'".
[5 Dec 2007 15:12] Hartmut Holzgraefe
Thank you for taking the time to report a problem.  Unfortunately you are not using a current version of the product you reported a problem with -- the problem might already be fixed. Please download a new version from http://www.mysql.com/downloads/

If you are able to reproduce the bug with one of the latest versions, please change the version on this bug report to the version you tested and change the status back to "Open".  Again, thank you for your continued support of MySQL.

Looks like a duplicate of bug #15872 to me which was fixed in 5.0.25 ...