1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-9652: EXPLAIN FORMAT=JSON should show outer_ref_cond

Show outer_ref_condition in EXPLAIN FORMAT=JSON output.
This commit is contained in:
Sergei Petrunia
2016-02-28 18:18:29 +03:00
parent 0dbfc0fde7
commit ab44e892d8
5 changed files with 59 additions and 1 deletions

View File

@ -394,5 +394,15 @@ set join_cache_level=@tmp_join_cache_level;
drop table t1,t2,t3,t4;
--echo #
--echo # MDEV-9652: EXPLAIN FORMAT=JSON should show outer_ref_cond
--echo #
create table t0(a int);
insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
create table t1 (a int, b int);
insert into t1 select a,a from t0;
explain format=json
select a, (select max(a) from t1 where t0.a<5 and t1.b<t0.a) from t0;
drop table t0,t1;