diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-07-16 11:29:16 +0500 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-07-16 11:29:16 +0500 |
commit | a41a43f99d053b96821d0c7388126ca581146933 (patch) | |
tree | 96c3e55c00f579733c300a701e2e951e7520885a /mysql-test/t/func_in.test | |
parent | 6b52f58255dd67a91d7cd0afa45f69607f498d0a (diff) | |
download | mariadb-git-a41a43f99d053b96821d0c7388126ca581146933.tar.gz |
Item_func_null doesn't have a separate Item for the first argument anymore.
args[0] is used instead. This allowed to resuse a lot of code.
Diffstat (limited to 'mysql-test/t/func_in.test')
-rw-r--r-- | mysql-test/t/func_in.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/func_in.test b/mysql-test/t/func_in.test index 723f1707a42..dca068f368a 100644 --- a/mysql-test/t/func_in.test +++ b/mysql-test/t/func_in.test @@ -54,3 +54,22 @@ insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9); select * from t1 where id in (2,5,9); drop table t1; +create table t1 ( +a char(1) character set latin1 collate latin1_general_ci, +b char(1) character set latin1 collate latin1_swedish_ci, +c char(1) character set latin1 collate latin1_danish_ci +); +insert into t1 values ('A','B','C'); +insert into t1 values ('a','c','c'); +--error 1265 +select * from t1 where a in (b); +--error 1268 +select * from t1 where a in (b,c); +--error 1269 +select * from t1 where 'a' in (a,b,c); +select * from t1 where 'a' in (a); +select * from t1 where a in ('a'); +select * from t1 where 'a' collate latin1_general_ci in (a,b,c); +select * from t1 where 'a' collate latin1_bin in (a,b,c); +select * from t1 where 'a' in (a,b,c collate latin1_bin); +drop table t1; |