mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed crash on non-well-constructed reference
mysql-test/r/subselect.result: test of IN with error mysql-test/t/subselect.test: test of IN with error
This commit is contained in:
@ -1012,3 +1012,5 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
2 UNCACHEABLE SUBSELECT t1 ALL NULL NULL NULL NULL 3
|
||||
3 UNCACHEABLE SUBSELECT t1 ALL NULL NULL NULL NULL 3
|
||||
drop table t1;
|
||||
select t1.Continent, t2.Name, t2.Population from t1 LEFT JOIN t2 ON t1.Code = t2.Country where t2.Population IN (select max(t2.Population) AS Population from t2, t1 where t2.Country = t1.Code group by Continent);
|
||||
Table 'test.t1' doesn't exist
|
||||
|
@ -595,3 +595,9 @@ insert into t1 values (1), (2), (3);
|
||||
explain select a,(select (select rand() from t1 limit 1) from t1 limit 1)
|
||||
from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# error in IN
|
||||
#
|
||||
-- error 1146
|
||||
select t1.Continent, t2.Name, t2.Population from t1 LEFT JOIN t2 ON t1.Code = t2.Country where t2.Population IN (select max(t2.Population) AS Population from t2, t1 where t2.Country = t1.Code group by Continent);
|
||||
|
Reference in New Issue
Block a user