diff options
author | unknown <serg@serg.mylan> | 2006-01-17 18:35:13 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2006-01-17 18:35:13 +0100 |
commit | 98fa568a47f5cf83d58b99d39a1198c84b775985 (patch) | |
tree | 3ce58b8e9700121c8987faa3d5c9e47882fde010 /storage | |
parent | 2f52bc4b21754b4d1fb9a0c16ead97a558971c91 (diff) | |
parent | 048754ff462506f30bc7b3e71a1e7e43370f5ab0 (diff) | |
download | mariadb-git-98fa568a47f5cf83d58b99d39a1198c84b775985.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new
into serg.mylan:/usr/home/serg/Abk/mysql-5.1
Diffstat (limited to 'storage')
-rw-r--r-- | storage/myisam/ft_boolean_search.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/storage/myisam/ft_boolean_search.c b/storage/myisam/ft_boolean_search.c index fbd8e03f75c..a4303af7e8f 100644 --- a/storage/myisam/ft_boolean_search.c +++ b/storage/myisam/ft_boolean_search.c @@ -165,7 +165,7 @@ typedef struct st_my_ftb_param } MY_FTB_PARAM; -static int ftb_query_add_word(void *param, byte *word, uint word_len, +static int ftb_query_add_word(void *param, char *word, int word_len, MYSQL_FTPARSER_BOOLEAN_INFO *info) { MY_FTB_PARAM *ftb_param= (MY_FTB_PARAM *)param; @@ -264,13 +264,13 @@ static int ftb_query_add_word(void *param, byte *word, uint word_len, } -static int ftb_parse_query_internal(void *param, byte *query, uint len) +static int ftb_parse_query_internal(void *param, char *query, int len) { MY_FTB_PARAM *ftb_param= (MY_FTB_PARAM *)param; MYSQL_FTPARSER_BOOLEAN_INFO info; CHARSET_INFO *cs= ftb_param->ftb->charset; - byte **start= &query; - byte *end= query + len; + char **start= &query; + char *end= query + len; FT_WORD w; info.prev= ' '; @@ -571,7 +571,7 @@ typedef struct st_my_ftb_phrase_param } MY_FTB_PHRASE_PARAM; -static int ftb_phrase_add_word(void *param, byte *word, uint word_len, +static int ftb_phrase_add_word(void *param, char *word, int word_len, MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info __attribute__((unused))) { MY_FTB_PHRASE_PARAM *phrase_param= (MY_FTB_PHRASE_PARAM *)param; @@ -601,11 +601,11 @@ static int ftb_phrase_add_word(void *param, byte *word, uint word_len, } -static int ftb_check_phrase_internal(void *param, byte *document, uint len) +static int ftb_check_phrase_internal(void *param, char *document, int len) { FT_WORD word; MY_FTB_PHRASE_PARAM *phrase_param= (MY_FTB_PHRASE_PARAM *)param; - const byte *docend= document + len; + const char *docend= document + len; while (ft_simple_get_word(phrase_param->cs, &document, docend, &word, FALSE)) { ftb_phrase_add_word(param, word.pos, word.len, 0); @@ -812,7 +812,7 @@ typedef struct st_my_ftb_find_param } MY_FTB_FIND_PARAM; -static int ftb_find_relevance_add_word(void *param, byte *word, uint len, +static int ftb_find_relevance_add_word(void *param, char *word, int len, MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info __attribute__((unused))) { MY_FTB_FIND_PARAM *ftb_param= (MY_FTB_FIND_PARAM *)param; @@ -845,10 +845,10 @@ static int ftb_find_relevance_add_word(void *param, byte *word, uint len, } -static int ftb_find_relevance_parse(void *param, byte *doc, uint len) +static int ftb_find_relevance_parse(void *param, char *doc, int len) { FT_INFO *ftb= ((MY_FTB_FIND_PARAM *)param)->ftb; - byte *end= doc + len; + char *end= doc + len; FT_WORD w; while (ft_simple_get_word(ftb->charset, &doc, end, &w, TRUE)) ftb_find_relevance_add_word(param, w.pos, w.len, 0); |