summaryrefslogtreecommitdiff
path: root/myisam/ft_nlq_search.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-10-22 17:57:09 +0200
committerunknown <serg@serg.mylan>2003-10-22 17:57:09 +0200
commitfd85cc84e4cad1f40e09af35265f47cf57750c49 (patch)
tree7ae15b4585e3b15c019c86d4b74106eadc6c7df1 /myisam/ft_nlq_search.c
parent061cbf873428571f448815e6c1fcba5908373132 (diff)
downloadmariadb-git-fd85cc84e4cad1f40e09af35265f47cf57750c49.tar.gz
MATCH ... AGAINST ("..." WITH QUERY EXPANSION) syntax
myisam/mi_write.c: cleanup mysql-test/t/fulltext.test: after merge fix
Diffstat (limited to 'myisam/ft_nlq_search.c')
-rw-r--r--myisam/ft_nlq_search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/ft_nlq_search.c b/myisam/ft_nlq_search.c
index 690ad0fc453..efe735c3d16 100644
--- a/myisam/ft_nlq_search.c
+++ b/myisam/ft_nlq_search.c
@@ -175,7 +175,7 @@ static int FT_DOC_cmp(FT_DOC *a, FT_DOC *b)
FT_INFO *ft_init_nlq_search(MI_INFO *info, uint keynr, byte *query,
- uint query_len, my_bool presort)
+ uint query_len, uint flags)
{
TREE allocated_wtree, *wtree=&allocated_wtree;
ALL_IN_ONE aio;
@@ -224,7 +224,7 @@ FT_INFO *ft_init_nlq_search(MI_INFO *info, uint keynr, byte *query,
tree_walk(&aio.dtree, (tree_walk_action) &walk_and_copy,
&dptr, left_root_right);
- if (presort)
+ if (flags & FT_SORTED)
qsort(dlist->doc, dlist->ndocs, sizeof(FT_DOC), (qsort_cmp)&FT_DOC_cmp);
err2: