You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow FULL OUTER JOIN queries to proceed through name resolution.
Permits limited EXPLAIN EXTENDED support so tests can prove that the
JOIN_TYPE_* table markings are reflected when the query is echoed back by the
server. This happens in at least two places: via a Warning message during
EXPLAIN EXTENDED and during VIEW .frm file creation.
While the query plan output is mostly meaningless at this point, this
limited EXPLAIN support improves the SELECT_LEX print function for the new
JOIN types.
NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
3753
+
Warnings:
3754
+
Note 1003 /* select#1 */ select `dt`.`a` AS `a` from (/* select#2 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` natural full join `test`.`t2` union /* select#3 */ select `test`.`t1`.`a` AS `a` from `test`.`t1`) `dt`
3755
+
select * from (select t1.a from t1 natural full outer join t2 union select * from t1) dt;
3679
3756
ERROR 42000: This version of MariaDB doesn't yet support 'full join'
3757
+
explain extended select * from (select t1.a from t1 natural full outer join t2 union select * from t1) dt;
3758
+
id select_type table type possible_keys key key_len ref rows filtered Extra
NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
3764
+
Warnings:
3765
+
Note 1003 /* select#1 */ select `dt`.`a` AS `a` from (/* select#2 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` natural full join `test`.`t2` union /* select#3 */ select `test`.`t1`.`a` AS `a` from `test`.`t1`) `dt`
3680
3766
with cte as (select t1.a from t1 natural full join t2) select * from cte;
3681
3767
ERROR 42000: This version of MariaDB doesn't yet support 'full join'
3768
+
explain extended with cte as (select t1.a from t1 natural full join t2) select * from cte;
3769
+
id select_type table type possible_keys key key_len ref rows filtered Extra
3770
+
1 SIMPLE t1 UNKNOWN NULL NULL NULL NULL 0 0.00
3771
+
1 SIMPLE t2 UNKNOWN NULL NULL NULL NULL 0 0.00
3772
+
Warnings:
3773
+
Note 1003 with cte as (select `test`.`t1`.`a` AS `a` from `test`.`t1` natural full join `test`.`t2`)select `test`.`t1`.`a` AS `a` from `test`.`t1` natural full join `test`.`t2`
3774
+
select * from t1, t2 full join t3 on t2.c=t3.e and t3.f=t1.a;
3775
+
ERROR 42S02: Table 'test.t3' doesn't exist
3776
+
select * from t1, t2 full outer join t3 on t2.c=t3.e and t3.f=t1.a;
0 commit comments