diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-04-29 00:38:10 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-04-29 00:38:10 +0200 |
commit | c4499a03917aecfc2d86142c469d02618cbec54b (patch) | |
tree | 9cd51b7c8d2274300165840204ae3eb19401942f /mysql-test/t/subselect_sj.test | |
parent | d6dbe8e2071bf9fdc21b5530abce88ff01b40e25 (diff) | |
parent | 5cfe52314e29386e1867fad1b44eace2b9d0be7e (diff) | |
download | mariadb-git-c4499a03917aecfc2d86142c469d02618cbec54b.tar.gz |
Merge branch '5.5' into 10.0
Diffstat (limited to 'mysql-test/t/subselect_sj.test')
-rw-r--r-- | mysql-test/t/subselect_sj.test | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mysql-test/t/subselect_sj.test b/mysql-test/t/subselect_sj.test index 16df4127b49..f98f5ac236f 100644 --- a/mysql-test/t/subselect_sj.test +++ b/mysql-test/t/subselect_sj.test @@ -2845,5 +2845,35 @@ eval EXPLAIN EXTENDED $q2; DROP TABLE t1,t2,t3,t4; +--echo # +--echo # MDEV-13699: Assertion `!new_field->field_name.str || +--echo # strlen(new_field->field_name.str) == new_field->field_name.length' +--echo # failed in create_tmp_table on 2nd execution of PS with semijoin +--echo # + +CREATE TABLE t1 (a INT); +INSERT INTO t1 VALUES (1),(2); + +CREATE TABLE t2 (b INT); +INSERT INTO t2 VALUES (3),(4); + +CREATE TABLE t3 (c INT); +CREATE ALGORITHM=MERGE VIEW v3 AS SELECT * FROM t3; +INSERT INTO t3 VALUES (5),(6); + +PREPARE stmt FROM + "SELECT * FROM t1 + WHERE EXISTS ( + SELECT * FROM t2 WHERE t1.a IN ( SELECT c AS fld FROM v3 ) + )"; +EXECUTE stmt; +EXECUTE stmt; +EXECUTE stmt; + +drop view v3; +drop table t1,t2,t3; + +--echo # End of 5.5 test + # The following command must be the last one the file set optimizer_switch=@subselect_sj_tmp; |