diff options
| author | Igor Babaev <igor@askmonty.org> | 2016-08-29 22:58:01 -0700 |
|---|---|---|
| committer | Igor Babaev <igor@askmonty.org> | 2016-08-29 22:58:01 -0700 |
| commit | 501fc1a9e292080aaa5c82e950839082a9672bc9 (patch) | |
| tree | 96b19070fa7ae229e53d0412cef4154a908451ce /mysql-test/t/cte_recursive.test | |
| parent | 9ac235ab7ddaefb2191a03d3e9cb025d584e3c36 (diff) | |
| download | mariadb-git-501fc1a9e292080aaa5c82e950839082a9672bc9.tar.gz | |
Returned the test case that was removed by mistake.
Diffstat (limited to 'mysql-test/t/cte_recursive.test')
| -rw-r--r-- | mysql-test/t/cte_recursive.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/cte_recursive.test b/mysql-test/t/cte_recursive.test index d795ea81b23..4ca931f326c 100644 --- a/mysql-test/t/cte_recursive.test +++ b/mysql-test/t/cte_recursive.test @@ -204,6 +204,20 @@ as ) select * from ancestors; +--echo # simple recursion with or in anchor and or in recursive part +with recursive +ancestors +as +( + select * + from folks + where name = 'Me' or name='Sister Amy' + union + select p.* + from folks as p, ancestors as a + where p.id = a.father or p.id = a.mother +) +select * from ancestors; --echo # two recursive definition, one uses another with recursive |
