Bug #23420 | Subquery does not fail when unknown field specified | ||
---|---|---|---|
Submitted: | 18 Oct 2006 13:34 | Modified: | 18 Oct 2006 15:35 |
Reporter: | Balint Toth | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.24a | OS: | pc-linux-gnu |
Assigned to: | CPU Architecture: | Any | |
Tags: | subquery delete |
[18 Oct 2006 13:34]
Balint Toth
[18 Oct 2006 15:17]
Valeriy Kravchuk
Sorry, but it is not a bug. When you use "t1id" delete from t1 where t1id in (select t1id from t2); you refer to the t1id column from outer table, t1, in your subquery. Try: delete from t1 where t1id in (select no_such_col from t2); and you'll see the difference...
[18 Oct 2006 15:35]
Balint Toth
I see. But why can you refer to an outer table? :) thanks anyway.