diff options
author | Alice Sherepa <alice.sherepa@gmail.com> | 2018-06-18 11:00:58 +0200 |
---|---|---|
committer | Alice Sherepa <alice.sherepa@gmail.com> | 2018-06-18 11:00:58 +0200 |
commit | 0782d8703ba037b44d05184ec6572e323189ff94 (patch) | |
tree | acba972862814415f0a87cb49ed016f94302912b /mysql-test/r/with_recursive_kill.result | |
parent | 352c7e0dfaa0f121c5b35e1d9fafb9ec8897e768 (diff) | |
download | mariadb-git-bb-MDEV-15447.tar.gz |
CTE tests (from MySQL 8.0)bb-MDEV-15447
Diffstat (limited to 'mysql-test/r/with_recursive_kill.result')
-rw-r--r-- | mysql-test/r/with_recursive_kill.result | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mysql-test/r/with_recursive_kill.result b/mysql-test/r/with_recursive_kill.result new file mode 100644 index 00000000000..363af33af8e --- /dev/null +++ b/mysql-test/r/with_recursive_kill.result @@ -0,0 +1,30 @@ +connect con1, localhost, root,,; +connect con2, localhost, root,,; +connection con1; +connection con2; +# Test that infinite WITH RECURSIVE can be killed +connection con1; +SET DEBUG_SYNC='in_WITH_RECURSIVE SIGNAL with_recursive_has_started'; +with recursive q (num, mark) as ( +select 1, "a" + union all select 1+num, "b" from q where mark="a" + union all select 1+num, "a" from q where mark="b" +) +select num from q; +connection con2; +SET DEBUG_SYNC='now WAIT_FOR with_recursive_has_started'; +Warnings: +Warning 1639 debug sync point wait timed out +KILL QUERY @id; +connection con1; +ERROR 70100: Query execution was interrupted +SET DEBUG_SYNC= 'RESET'; +SELECT 1; +1 +1 +connection con2; +SET DEBUG_SYNC= 'RESET'; +connection con1; +connection default; +disconnect con1; +disconnect con2; |