diff options
author | unknown <evgen@moonbone.local> | 2006-05-30 19:16:30 +0400 |
---|---|---|
committer | unknown <evgen@moonbone.local> | 2006-05-30 19:16:30 +0400 |
commit | 188ed61b9b10456b868aa725010515f69db48585 (patch) | |
tree | 124637154b2ebae6aa7b8032d151173f289dedb0 /mysql-test/r/func_in.result | |
parent | 362fe8e131b584db1e8cdfbdcc1801bf677c975d (diff) | |
parent | a88d6b5b08181d9ef74b64885736badb8bbed8ee (diff) | |
download | mariadb-git-188ed61b9b10456b868aa725010515f69db48585.tar.gz |
Manually merged
mysql-test/t/func_in.test:
Auto merged
Diffstat (limited to 'mysql-test/r/func_in.result')
-rw-r--r-- | mysql-test/r/func_in.result | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/r/func_in.result b/mysql-test/r/func_in.result index e38e2624e19..dd355c693d7 100644 --- a/mysql-test/r/func_in.result +++ b/mysql-test/r/func_in.result @@ -202,6 +202,27 @@ select count(*) from t1 where id not in (1,2); count(*) 1 drop table t1; +create table t1 (f1 char(1), f2 int); +insert into t1 values (1,0),('a',1),('z',2); +select f1 from t1 where f1 in (1,'z'); +f1 +1 +z +select f2 from t1 where f2 in (1,'z'); +f2 +0 +1 +select f1 from t1 where 'z' in (1,f1); +f1 +z +select * from t1 where 'z' in (f2,f1); +f1 f2 +z 2 +select * from t1 where 1 in (f2,f1); +f1 f2 +1 0 +a 1 +drop table t1; CREATE TABLE t1 (a int PRIMARY KEY); INSERT INTO t1 VALUES (44), (45), (46); SELECT * FROM t1 WHERE a IN (45); |