diff options
author | bell@sanja.is.com.ua <> | 2003-09-07 20:35:10 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2003-09-07 20:35:10 +0300 |
commit | a02094ef103e7c8f41ffa78ebbbb5d9a21d7468d (patch) | |
tree | b6f5765f53cdbadd7fa17968bf1239a496f3b1ef /mysql-test/t/subselect.test | |
parent | b48f64be194bae2afa8d8f9a2128f7c52b1b7c03 (diff) | |
download | mariadb-git-a02094ef103e7c8f41ffa78ebbbb5d9a21d7468d.tar.gz |
fixed row union processing
Diffstat (limited to 'mysql-test/t/subselect.test')
-rw-r--r-- | mysql-test/t/subselect.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/subselect.test b/mysql-test/t/subselect.test index c9dba498428..4b8d63b681e 100644 --- a/mysql-test/t/subselect.test +++ b/mysql-test/t/subselect.test @@ -922,3 +922,13 @@ insert into t2 values(1,0,0),(2,0,0); insert into t1 values(1,0),(1,0),(1,0),(1,12),(1,15),(1,123),(1,12312),(1,12312),(1,123),(2,0),(2,0),(2,1),(2,2); select userid,pmtotal,pmnew, (select count(rd) from t1 where toid=t2.userid) calc_total, (select count(rd) from t1 where rd=0 and toid=t2.userid) calc_new from t2 where userid in (select distinct toid from t1); drop table t1, t2; + +# +# row union +# +create table t1 (s1 char(5)); +-- error 1240 +select (select 'a','b' from t1 union select 'a','b' from t1) from t1; +insert into t1 values ('tttt'); +select * from t1 where ('a','b')=(select 'a','b' from t1 union select 'a','b' from t1); +drop table t1; |