summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-03-21 16:18:21 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-03-21 22:58:52 +0200
commit3d7915f000b15ad296e3ff18d750f36a4f17de0e (patch)
treea5abe2dd6e6b8a633130597aa08937fcc92c965b /mysql-test/r
parent82aeb6b59640b9733c4026bda71887720153b70a (diff)
parent4629db0dd6442ea7c2d3ecd636060bc4d21f2d19 (diff)
downloadmariadb-git-3d7915f000b15ad296e3ff18d750f36a4f17de0e.tar.gz
Merge 10.1 into 10.2
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/having.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/having.result b/mysql-test/r/having.result
index fca4c43ed20..c64d0579962 100644
--- a/mysql-test/r/having.result
+++ b/mysql-test/r/having.result
@@ -721,6 +721,20 @@ SELECT * FROM t1 JOIN t2 ON c1 = c2 HAVING c2 > 'a' ORDER BY c2 LIMIT 1;
c1 c2
x x
DROP TABLE t1,t2;
+#
+# MDEV-6736: Valgrind warnings 'Invalid read' in subselect_engine::calc_const_tables with SQ
+# in WHERE and HAVING, ORDER BY, materialization+semijoin
+#
+CREATE TABLE t1 (a INT) ENGINE=MyISAM;
+INSERT INTO t1 VALUES (3),(8);
+CREATE TABLE t2 (b INT) ENGINE=MyISAM;
+INSERT INTO t2 VALUES (2),(1);
+SELECT a FROM t1
+WHERE 9 IN ( SELECT MIN( a ) FROM t1 )
+HAVING a <> ( SELECT COUNT(*) FROM t2 )
+ORDER BY a;
+a
+DROP TABLE t1,t2;
End of 10.0 tests
#
# MDEV-10716: Assertion `real_type() != FIELD_ITEM' failed in