mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.2 into 10.3
This commit is contained in:
@ -941,5 +941,28 @@ WHERE (
|
||||
|
||||
drop table t1,t2,t3;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-25407: EXISTS subquery with correlation in ON expression crashes
|
||||
--echo #
|
||||
create table t10(a int primary key);
|
||||
insert into t10 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
|
||||
create table t11(a int primary key);
|
||||
insert into t11 select a.a + b.a* 10 + c.a * 100 from t10 a, t10 b, t10 c;
|
||||
|
||||
create table t1 (a int, b int);
|
||||
insert into t1 select a,a from t10;
|
||||
|
||||
create table t2 (a int, b int);
|
||||
insert into t2 select a,a from t11;
|
||||
|
||||
create table t3 as select * from t2;
|
||||
|
||||
|
||||
explain select * from t1 where exists (select t2.a from t2 left join t3 on (t3.b=t1.b) where t2.a=t1.a);
|
||||
|
||||
drop table t1, t2, t3, t10, t11;
|
||||
|
||||
|
||||
#restore defaults
|
||||
set optimizer_switch=default;
|
||||
|
Reference in New Issue
Block a user