summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-10-17 14:49:54 +0200
committerunknown <serg@serg.mysql.com>2001-10-17 14:49:54 +0200
commit83ba8a138fa77f7c108230d0d7ddb4ff32429fbf (patch)
tree9f8761a4b0da10a3be78e0a02c1a1f7267adf1d3
parentc14e3edae918a7e507f7face7f705116aa5ba9c7 (diff)
downloadmariadb-git-83ba8a138fa77f7c108230d0d7ddb4ff32429fbf.tar.gz
typo fixed
mysql-test/r/fulltext.result: new test mysql-test/t/fulltext.test: new test
-rw-r--r--myisam/ft_boolean_search.c2
-rw-r--r--mysql-test/r/fulltext.result3
-rw-r--r--mysql-test/t/fulltext.test1
3 files changed, 5 insertions, 1 deletions
diff --git a/myisam/ft_boolean_search.c b/myisam/ft_boolean_search.c
index ad541ee47ea..a850827c52e 100644
--- a/myisam/ft_boolean_search.c
+++ b/myisam/ft_boolean_search.c
@@ -123,7 +123,7 @@ void _ftb_parse_query(FTB *ftb, byte **start, byte *end,
ftbe->up=up;
ftbe->ythresh=0;
ftbe->docid=HA_POS_ERROR;
- if (ftbw->yesno > 0) up->ythresh++;
+ if (ftbe->yesno > 0) up->ythresh++;
_ftb_parse_query(ftb, start, end, ftbe, depth+1,
(param.yesno<0 ? depth+1 : ndepth));
break;
diff --git a/mysql-test/r/fulltext.result b/mysql-test/r/fulltext.result
index 733710504c6..47a823929f4 100644
--- a/mysql-test/r/fulltext.result
+++ b/mysql-test/r/fulltext.result
@@ -45,6 +45,9 @@ select * from t1 where MATCH(a,b) AGAINST("+search +(support vector)" IN BOOLEAN
a b
MySQL has now support for full-text search
Full-text search in MySQL implements vector space model
+select * from t1 where MATCH(a,b) AGAINST("+search -(support vector)" IN BOOLEAN MODE);
+a b
+Function MATCH ... AGAINST() is used to do a search
delete from t1 where a like "MySQL%";
drop table t1;
CREATE TABLE t1 (
diff --git a/mysql-test/t/fulltext.test b/mysql-test/t/fulltext.test
index 16b19381be4..4f7df2ac0b0 100644
--- a/mysql-test/t/fulltext.test
+++ b/mysql-test/t/fulltext.test
@@ -20,6 +20,7 @@ select * from t1 where MATCH(a,b) AGAINST("sear*" IN BOOLEAN MODE);
select * from t1 where MATCH(a,b) AGAINST("+support +collections" IN BOOLEAN MODE);
select * from t1 where MATCH(a,b) AGAINST("+search" IN BOOLEAN MODE);
select * from t1 where MATCH(a,b) AGAINST("+search +(support vector)" IN BOOLEAN MODE);
+select * from t1 where MATCH(a,b) AGAINST("+search -(support vector)" IN BOOLEAN MODE);
delete from t1 where a like "MySQL%";
drop table t1;