diff options
author | monty@donna.mysql.com <> | 2000-12-28 03:56:38 +0200 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-12-28 03:56:38 +0200 |
commit | c0f40d14cc36f56f5b4dba288583acd345429e4e (patch) | |
tree | c27e400395741740f2e230395445236b38db27c1 /mysql-test/t/func_set.test | |
parent | 361067e9150f7fa57d5b2ac722ed55df9c14cc53 (diff) | |
download | mariadb-git-c0f40d14cc36f56f5b4dba288583acd345429e4e.tar.gz |
Added support for hex strings to mysqlimport
A lot of new tests to mysqltest
Fixed bug with BDB tables and autocommit
Diffstat (limited to 'mysql-test/t/func_set.test')
-rw-r--r-- | mysql-test/t/func_set.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/func_set.test b/mysql-test/t/func_set.test new file mode 100644 index 00000000000..cb1aa543d43 --- /dev/null +++ b/mysql-test/t/func_set.test @@ -0,0 +1,17 @@ +# +# Testing if SET and similar functions +# + +select interval(55,10,20,30,40,50,60,70,80,90,100),interval(3,1,1+1,1+1+1+1),field("IBM","NCA","ICL","SUN","IBM","DIGITAL"),field("A","B","C"),elt(2,"ONE","TWO","THREE"),interval(0,1,2,3,4),elt(1,1,2,3)|0,elt(1,1.1,1.2,1.3)+0; +select find_in_set("b","a,b,c"),find_in_set("c","a,b,c"),find_in_set("dd","a,bbb,dd"),find_in_set("bbb","a,bbb,dd"); +select find_in_set("d","a,b,c"),find_in_set("dd","a,bbb,d"),find_in_set("bb","a,bbb,dd"); +select make_set(0,'a','b','c'),make_set(-1,'a','b','c'),make_set(1,'a','b','c'),make_set(2,'a','b','c'),make_set(1+2,concat('a','b'),'c'); +select make_set(NULL,'a','b','c'),make_set(1|4,'a',NULL,'c'),make_set(1+2,'a',NULL,'c'); +select export_set(9,"Y","N","-",5),export_set(9,"Y","N"),export_set(9,"Y","N",""); + +# +# Wrong usage of functions +# +select elt(2,1),field(NULL,"a","b","c"); +select find_in_set("","a,b,c"),find_in_set("","a,b,c,"),find_in_set("",",a,b,c"); +select find_in_set("abc","abc"),find_in_set("ab","abc"),find_in_set("abcd","abc"); |