diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-06-04 16:12:00 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-06-04 16:12:00 +0300 |
commit | b50685af82508ca1cc83e1743dff527770e6e64b (patch) | |
tree | abbbc2a2ca9f4f80b4cb0da2d775e037575204ab /mysql-test/main/cte_nonrecursive.result | |
parent | cac41001864ca503a7812b7f2a3b312435fb4ec4 (diff) | |
parent | 8dc70c862b8ec115fd9a3c2b37c746ffc4f0d3cc (diff) | |
download | mariadb-git-b50685af82508ca1cc83e1743dff527770e6e64b.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'mysql-test/main/cte_nonrecursive.result')
-rw-r--r-- | mysql-test/main/cte_nonrecursive.result | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/main/cte_nonrecursive.result b/mysql-test/main/cte_nonrecursive.result index 534a386fe12..150fe13f7fb 100644 --- a/mysql-test/main/cte_nonrecursive.result +++ b/mysql-test/main/cte_nonrecursive.result @@ -1462,3 +1462,19 @@ a b 4 5 4 3 DROP TABLE t1; +# +# MDEV-16353: unreferenced CTE specified by query with UNION +# +with cte as +(select 1 union select 2 union select 3) +select 1 as f; +f +1 +create table t1 (a int); +insert into t1 values (2), (1), (7), (1), (4); +with cte as +(select * from t1 where a < 2 union select * from t1 where a > 5) +select 2 as f; +f +2 +drop table t1; |