summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-12-03 23:24:41 +0200
committerbell@sanja.is.com.ua <>2004-12-03 23:24:41 +0200
commita3ad1765a8b212be8b2c8dedb5ced1282ac0b68b (patch)
tree0db84e1edab3d877bb8898c5163d508411f20988 /mysql-test
parent734ffb8452ddb098fc2d2e909eecefc4a2e59b87 (diff)
parentb48ec20ac71aa260114b5100ed6c427e47167b63 (diff)
downloadmariadb-git-a3ad1765a8b212be8b2c8dedb5ced1282ac0b68b.tar.gz
merge
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/subselect.result5
-rw-r--r--mysql-test/t/subselect.test8
2 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/r/subselect.result b/mysql-test/r/subselect.result
index 99827238540..98adbc19eeb 100644
--- a/mysql-test/r/subselect.result
+++ b/mysql-test/r/subselect.result
@@ -2026,3 +2026,8 @@ select count(distinct id) from t1 where id in (select id from t2 where match(bod
count(distinct id)
1
drop table t2,t1;
+create table t1 (s1 int,s2 int);
+insert into t1 values (20,15);
+select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
+s1 s2
+drop table t1;
diff --git a/mysql-test/t/subselect.test b/mysql-test/t/subselect.test
index b76f5140e78..e78874453b9 100644
--- a/mysql-test/t/subselect.test
+++ b/mysql-test/t/subselect.test
@@ -1328,3 +1328,11 @@ insert into t1 values(1),(2),(3);
insert into t2 values (1,'test'), (2,'mysql'), (3,'test'), (4,'test');
select count(distinct id) from t1 where id in (select id from t2 where match(body) against ('mysql' in boolean mode));
drop table t2,t1;
+
+#
+# Equal operation under row and empty subquery
+#
+create table t1 (s1 int,s2 int);
+insert into t1 values (20,15);
+select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
+drop table t1;