summaryrefslogtreecommitdiff
path: root/mysql-test/t/subselect.test
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2017-07-28 20:47:12 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2017-07-29 20:01:20 +0300
commit2160a851840488d38358d5633237ec197fab969b (patch)
treeb70ac1fe1bab6dcdc856c5f4af13f2db062b3fe2 /mysql-test/t/subselect.test
parentaf40426fcdacfa9e8e2868cf5d95ce671c1287a1 (diff)
downloadmariadb-git-2160a851840488d38358d5633237ec197fab969b.tar.gz
Update subselect test results to pass on 10.0
One query was removed due to inconsistent behaviour with subquery cache enabled vs disabled. MDEV-13399 has been created to track this change and fix.
Diffstat (limited to 'mysql-test/t/subselect.test')
-rw-r--r--mysql-test/t/subselect.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/mysql-test/t/subselect.test b/mysql-test/t/subselect.test
index cdb278d9130..43373248834 100644
--- a/mysql-test/t/subselect.test
+++ b/mysql-test/t/subselect.test
@@ -6059,6 +6059,13 @@ drop table t1,t2;
CREATE TABLE t1 (f1 INT, KEY(f1)) ENGINE=MyISAM;
INSERT t1 VALUES (4),(8);
CREATE TABLE t2 (f2 INT, KEY(f2)) ENGINE=MyISAM;
-INSERT t2 VALUES (6),(9);
+INSERT t2 VALUES (6);
SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
+--echo #
+--echo # Disable this query till MDEV-13399 is resolved
+--echo #
+--echo # INSERT t2 VALUES (9);
+--echo # --error ER_SUBQUERY_NO_1_ROW
+--echo # SELECT (SELECT MAX(sq.f2) FROM t1) FROM (SELECT * FROM t2) AS sq WHERE f2 = 2;
+--echo #
drop table t1, t2;