Bug #25204 | No Error messages for Subselects in IN/ANY/SOME statements | ||
---|---|---|---|
Submitted: | 20 Dec 2006 8:49 | Modified: | 20 Dec 2006 13:38 |
Reporter: | Peter Volk (Basic Quality Contributor) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Parser | Severity: | S2 (Serious) |
Version: | 5.0.30 | OS: | |
Assigned to: | CPU Architecture: | Any | |
Tags: | ANY, error message, IN, SOME, subquery |
[20 Dec 2006 8:49]
Peter Volk
[20 Dec 2006 13:38]
Hartmut Holzgraefe
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php SELECT b FROM tab2 WHERE b IN(SELECT b FROM tab1); actually comes down to SELECT tab2.b FROM tab2 WHERE tab2.b IN (SELECT tab2.b FROM tab1) so 'b' is taken from the outer context of the query. Not that the resulting query makes much sense in this case, but it is perfectly valid SQL.