diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-03-21 11:35:50 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-03-21 11:35:50 +0100 |
commit | 0d622bed4f1a1484af747840c39325c67d7767d4 (patch) | |
tree | 34d80b0d30e868702ffb61bac6919ef0095d68e8 /mysql-test/t/subselect4.test | |
parent | 4c35dce2968ac715b72bb75c2d64d977868f718f (diff) | |
parent | 577915def8d39223aa23a06f898e11e82e72365a (diff) | |
download | mariadb-git-0d622bed4f1a1484af747840c39325c67d7767d4.tar.gz |
Merge branch '5.5' into 10.0
Diffstat (limited to 'mysql-test/t/subselect4.test')
-rw-r--r-- | mysql-test/t/subselect4.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/subselect4.test b/mysql-test/t/subselect4.test index 76b4df47a6a..e54308b5e46 100644 --- a/mysql-test/t/subselect4.test +++ b/mysql-test/t/subselect4.test @@ -2016,5 +2016,21 @@ select 1 from dual where null not in (select 1 from t1); select 1 from dual where null not in (select 1 from t2); drop table t1,t2; + +--echo # +--echo # MDEV-6486: Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' +--echo # failed with SELECT SQ, TEXT field +--echo # + +CREATE TABLE t1 (a VARCHAR(8), KEY(a)) ENGINE=MyISAM; +INSERT INTO t1 VALUES ('foo'),( 'bar'); + +CREATE TABLE t2 (b VARCHAR(8), c TINYTEXT, KEY(b)) ENGINE=MyISAM; +INSERT INTO t2 VALUES ('baz','baz'),('qux', 'qux'); + +SELECT ( SELECT COUNT(*) FROM t1 WHERE a = c ) AS field, COUNT(DISTINCT c) +FROM t2 WHERE b <= 'quux' GROUP BY field; +drop table t1,t2; + SET optimizer_switch= @@global.optimizer_switch; set @@tmp_table_size= @@global.tmp_table_size; |