diff options
author | unknown <serg@serg.mysql.com> | 2001-11-28 17:55:45 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2001-11-28 17:55:45 +0100 |
commit | f3918c8413199fff3339a62498ecc42d8c540c3a (patch) | |
tree | caee073830ac75c7f6485bf0a5d92ffda5d16255 /myisam/ft_parser.c | |
parent | 056c71f1ae445b96c13e241d40a729f16e65bb4a (diff) | |
download | mariadb-git-f3918c8413199fff3339a62498ecc42d8c540c3a.tar.gz |
boolean fulltext search without an index
myisam/ft_dump.c:
some help added
Diffstat (limited to 'myisam/ft_parser.c')
-rw-r--r-- | myisam/ft_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/myisam/ft_parser.c b/myisam/ft_parser.c index 35e5959b556..0d1495da548 100644 --- a/myisam/ft_parser.c +++ b/myisam/ft_parser.c @@ -206,7 +206,7 @@ byte ft_simple_get_word(byte **start, byte *end, FT_WORD *word) return 0; } -TREE * ft_parse(TREE *wtree, byte *doc, int doclen) +int ft_parse(TREE *wtree, byte *doc, int doclen) { byte *end=doc+doclen; FT_WORD w; @@ -221,10 +221,10 @@ TREE * ft_parse(TREE *wtree, byte *doc, int doclen) if (!tree_insert(wtree, &w, 0)) goto err; } - return wtree; + return 0; err: delete_tree(wtree); - return NULL; + return 1; } |