mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
after merging fix
This commit is contained in:
@ -121,7 +121,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
2 DEPENDENT SUBSELECT t1 system NULL NULL NULL NULL 1 where used
|
||||
3 DEPENDENT UNION t5 ALL NULL NULL NULL NULL 2 where used
|
||||
select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
|
||||
Subselect return more than 1 record
|
||||
Subselect returns more than 1 record
|
||||
create table attend (patient_uq int, clinic_uq int, index i1 (clinic_uq));
|
||||
create table clinic( uq int primary key, name char(25));
|
||||
insert into clinic values(1,"Oblastnaia bolnitsa"),(2,"Bolnitsa Krasnogo Kresta");
|
||||
|
@ -45,7 +45,7 @@ select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a)
|
||||
insert into t5 values (2);
|
||||
select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
|
||||
explain select (select a from t1 where t1.a=t2.a union select a from t5 where t5.a=t2.a), a from t2;
|
||||
-- error 1230
|
||||
-- error 1240
|
||||
select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
|
||||
create table attend (patient_uq int, clinic_uq int, index i1 (clinic_uq));
|
||||
create table clinic( uq int primary key, name char(25));
|
||||
|
Reference in New Issue
Block a user