summaryrefslogtreecommitdiff
path: root/mysql-test/r/ps_qc_innodb.result
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-03-23 11:44:29 +0100
committerSergei Golubchik <serg@mariadb.org>2018-03-23 11:44:29 +0100
commita2e47f8c41e60fb0eeaa01cdd41fc07b9c963768 (patch)
tree1846a0fdfdff14207698f563376afbdae5d33c8c /mysql-test/r/ps_qc_innodb.result
parent04921000594dcbdf23340850b9284fd30ccdb0fd (diff)
parentddc5c65333a4add28907ccb82054ecba0ff6b873 (diff)
downloadmariadb-git-a2e47f8c41e60fb0eeaa01cdd41fc07b9c963768.tar.gz
Merge branch '5.5' into 10.0
Diffstat (limited to 'mysql-test/r/ps_qc_innodb.result')
-rw-r--r--mysql-test/r/ps_qc_innodb.result23
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/r/ps_qc_innodb.result b/mysql-test/r/ps_qc_innodb.result
new file mode 100644
index 00000000000..775055e858f
--- /dev/null
+++ b/mysql-test/r/ps_qc_innodb.result
@@ -0,0 +1,23 @@
+#
+# MDEV-15492: Subquery crash similar to MDEV-10050
+#
+SET @qcs.save= @@global.query_cache_size, @qct.save= @@global.query_cache_type;
+SET GLOBAL query_cache_size= 512*1024*1024, query_cache_type= ON;
+CREATE TABLE t1 (a INT) ENGINE=InnoDB;
+CREATE TABLE t2 (b INT) ENGINE=InnoDB;
+CREATE VIEW v AS select a from t1 join t2;
+PREPARE stmt1 FROM "SELECT * FROM t1 WHERE a in (SELECT a FROM v)";
+PREPARE stmt2 FROM "SELECT * FROM t1 WHERE a in (SELECT a FROM v)";
+EXECUTE stmt2;
+a
+EXECUTE stmt1;
+a
+INSERT INTO t2 VALUES (0);
+EXECUTE stmt1;
+a
+START TRANSACTION;
+EXECUTE stmt1;
+a
+DROP VIEW v;
+DROP TABLE t1, t2;
+SET GLOBAL query_cache_size= @qcs.save, query_cache_type= @qct.save;