summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2002-03-15 14:11:11 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2002-03-15 14:11:11 +0200
commit3b2e1fd276094597cfb500bc8b9f27a193bfb60c (patch)
treea25d01855444721b4ec388407fb61159f5bb4370 /mysql-test
parent606e3e9550f78894604bac0d4fbf473309798bf2 (diff)
downloadmariadb-git-3b2e1fd276094597cfb500bc8b9f27a193bfb60c.tar.gz
Making full-text queries working with UNION's
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/fulltext.result5
-rw-r--r--mysql-test/t/fulltext.test4
2 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/fulltext.result b/mysql-test/r/fulltext.result
index 7f4f3444312..dd5e59e4081 100644
--- a/mysql-test/r/fulltext.result
+++ b/mysql-test/r/fulltext.result
@@ -16,6 +16,11 @@ select * from t1 where MATCH(a,b) AGAINST ("indexes collections");
a b
Full-text indexes are called collections
Only MyISAM tables support collections
+select * from t1 where MATCH(a,b) AGAINST ("collections") UNION ALL select * from t1 where MATCH(a,b) AGAINST ("indexes");
+a b
+Only MyISAM tables support collections
+Full-text indexes are called collections
+Full-text indexes are called collections
select * from t1 where MATCH(a,b) AGAINST("support -collections" IN BOOLEAN MODE);
a b
MySQL has now support for full-text search
diff --git a/mysql-test/t/fulltext.test b/mysql-test/t/fulltext.test
index da0c0a52d8a..ea7a572951a 100644
--- a/mysql-test/t/fulltext.test
+++ b/mysql-test/t/fulltext.test
@@ -17,6 +17,10 @@ select * from t1 where MATCH(a,b) AGAINST ("collections");
select * from t1 where MATCH(a,b) AGAINST ("indexes");
select * from t1 where MATCH(a,b) AGAINST ("indexes collections");
+# UNION of fulltext's
+select * from t1 where MATCH(a,b) AGAINST ("collections") UNION ALL select * from t1 where MATCH(a,b) AGAINST ("indexes");
+
+
# boolean search
select * from t1 where MATCH(a,b) AGAINST("support -collections" IN BOOLEAN MODE);