summaryrefslogtreecommitdiff
path: root/mysql-test/t/subselect_debug.test
diff options
context:
space:
mode:
authorGeorgi Kodinov <kgeorge@mysql.com>2008-07-07 11:43:56 +0300
committerGeorgi Kodinov <kgeorge@mysql.com>2008-07-07 11:43:56 +0300
commit50853ac31a5f158d02c986a9eec5144cf20d00b9 (patch)
tree8450d1af27332a28d27f3953afe7b32c23b28ca8 /mysql-test/t/subselect_debug.test
parent205a946267c77186fbc35ccb0460488b1948fe42 (diff)
downloadmariadb-git-50853ac31a5f158d02c986a9eec5144cf20d00b9.tar.gz
Bug#37627: addendum :
- moved the test into a separate file to check for presence of the test variable mysql-test/r/subselect.result: Bug#37627: moved the test to a separate file mysql-test/r/subselect_debug.result: Bug#37627: moved the test to a separate file mysql-test/t/subselect.test: Bug#37627: moved the test to a separate file mysql-test/t/subselect_debug.test: Bug#37627: moved the test to a separate file
Diffstat (limited to 'mysql-test/t/subselect_debug.test')
-rw-r--r--mysql-test/t/subselect_debug.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/subselect_debug.test b/mysql-test/t/subselect_debug.test
new file mode 100644
index 00000000000..358705da4f2
--- /dev/null
+++ b/mysql-test/t/subselect_debug.test
@@ -0,0 +1,16 @@
+--source include/have_debug.inc
+
+#
+# Bug #37627: Killing query with sum(exists()) or avg(exists()) reproducibly
+# crashes server
+#
+
+CREATE TABLE t1(id INT);
+INSERT INTO t1 VALUES (1),(2),(3),(4);
+INSERT INTO t1 SELECT a.id FROM t1 a,t1 b,t1 c,t1 d;
+# Setup the mysqld to crash at certain point
+SET SESSION debug="d,subselect_exec_fail";
+SELECT SUM(EXISTS(SELECT RAND() FROM t1)) FROM t1;
+SELECT REVERSE(EXISTS(SELECT RAND() FROM t1));
+SET SESSION debug=DEFAULT;
+DROP TABLE t1;