diff options
author | serg@serg.mysql.com <> | 2001-11-28 17:55:45 +0100 |
---|---|---|
committer | serg@serg.mysql.com <> | 2001-11-28 17:55:45 +0100 |
commit | 4a5ca1073bd6e7f20beec01e83b6ad8bdd29af6d (patch) | |
tree | caee073830ac75c7f6485bf0a5d92ffda5d16255 /myisam/ft_parser.c | |
parent | 79258183fd6f94736b09690c587575bb2aaaf1eb (diff) | |
download | mariadb-git-4a5ca1073bd6e7f20beec01e83b6ad8bdd29af6d.tar.gz |
boolean fulltext search without an index
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; } |