diff options
author | unknown <serg@serg.mysql.com> | 2000-12-30 16:54:33 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2000-12-30 16:54:33 +0100 |
commit | 4e72179830a45f78c534257042cfc6e40161ad40 (patch) | |
tree | 2f6856a715acf02e6006fa72f2deb6dffe252f7f /mysql-test/t/fulltext_multi.test | |
parent | 694ea09556d31bf64836d83b9e2c6e2211e70c47 (diff) | |
download | mariadb-git-4e72179830a45f78c534257042cfc6e40161ad40.tar.gz |
fulltext_multi.test Rename: mysql-test/t/ft0000002.test -> mysql-test/t/fulltext_multi.test
fulltext_order_by.test Rename: mysql-test/t/ft0000001.test -> mysql-test/t/fulltext_order_by.test
fulltext_multi.result Rename: mysql-test/r/ft0000002.result -> mysql-test/r/fulltext_multi.result
fulltext_order_by.result Rename: mysql-test/r/ft0000001.result -> mysql-test/r/fulltext_order_by.result
mysql-test/r/fulltext_order_by.result:
Rename: mysql-test/r/ft0000001.result -> mysql-test/r/fulltext_order_by.result
mysql-test/r/fulltext_multi.result:
Rename: mysql-test/r/ft0000002.result -> mysql-test/r/fulltext_multi.result
mysql-test/t/fulltext_order_by.test:
Rename: mysql-test/t/ft0000001.test -> mysql-test/t/fulltext_order_by.test
mysql-test/t/fulltext_multi.test:
Rename: mysql-test/t/ft0000002.test -> mysql-test/t/fulltext_multi.test
Diffstat (limited to 'mysql-test/t/fulltext_multi.test')
-rw-r--r-- | mysql-test/t/fulltext_multi.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/t/fulltext_multi.test b/mysql-test/t/fulltext_multi.test new file mode 100644 index 00000000000..ca14220a1f8 --- /dev/null +++ b/mysql-test/t/fulltext_multi.test @@ -0,0 +1,20 @@ +# several FULLTEXT indexes in one table test +use test; +DROP TABLE IF EXISTS test; +CREATE TABLE test ( + a int(11) NOT NULL auto_increment, + b text, + c varchar(254) default NULL, + PRIMARY KEY (a), + FULLTEXT KEY bb(b), + FULLTEXT KEY cc(c), + FULLTEXT KEY a(b,c) +); + +INSERT INTO test VALUES (1,'lala lolo lili','oooo aaaa pppp'); +INSERT INTO test VALUES (2,'asdf fdsa','lkjh fghj'); +INSERT INTO test VALUES (3,'qpwoei','zmxnvb'); + +SELECT a, MATCH b AGAINST ('lala lkjh') FROM test; +SELECT a, MATCH c AGAINST ('lala lkjh') FROM test; +SELECT a, MATCH b,c AGAINST ('lala lkjh') FROM test; |