summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2018-01-29 09:44:17 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2018-02-01 16:12:14 +0100
commit96cb428b350ba48ee17ad9968d08f5318e48258c (patch)
tree0aa1240aa7228ad005d04b41081a499f60662751 /mysql-test/r
parentd6638586c6363fd7b914ea4d2d5e6276659e0e2a (diff)
downloadmariadb-git-96cb428b350ba48ee17ad9968d08f5318e48258c.tar.gz
MDEV-14862: Server crashes in Bitmap<64u>::merge / add_key_field
Do not unwrap view references to keep table info. (Row-IN subselect does not unwrap items so it does not need fix)
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/update_innodb.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/update_innodb.result b/mysql-test/r/update_innodb.result
index 88c86c50625..6dae6abebb1 100644
--- a/mysql-test/r/update_innodb.result
+++ b/mysql-test/r/update_innodb.result
@@ -29,3 +29,13 @@ CREATE ALGORITHM=UNDEFINED VIEW `v1` AS select `t4`.`c1` AS `c1`,`t4`.`c2` AS `c
UPDATE t1 a JOIN t2 b ON a.c1 = b.c1 JOIN v1 vw ON b.c2 = vw.c1 JOIN t3 del ON vw.c2 = del.c2 SET a.c2 = ( SELECT max(t.c1) FROM t3 t, v1 i WHERE del.c2 = t.c2 AND vw.c3 = i.c3 AND t.c3 = 4 ) WHERE a.c2 IS NULL OR a.c2 < '2011-05-01';
drop view v1;
drop table t1,t2,t3,t4;
+#
+# MDEV-14862: Server crashes in Bitmap<64u>::merge / add_key_field
+#
+CREATE TABLE t1 (a INT) ENGINE=InnoDB;
+CREATE VIEW v1 AS SELECT * FROM t1;
+CREATE TABLE t2 (b INT) ENGINE=InnoDB;
+DELETE FROM v1 WHERE a IN ( SELECT a FROM t2 );
+DELETE FROM v1 WHERE (a,a) IN ( SELECT a,a FROM t2 );
+drop view v1;
+drop table t1,t2;