Commit f02c8ffa authored by xzhangxian1008's avatar xzhangxian1008 Committed by GitHub

MDEV-24031: remove maria_ft_boolean_check_syntax_string

The function is not used anywhere and it seems buggy anyway
given Rinat's observations from MDEV-24031
r=robertbindar
parent 3b7dbdf0
......@@ -81,27 +81,6 @@ FT_WORD * maria_ft_linearize(TREE *wtree, MEM_ROOT *mem_root)
DBUG_RETURN(wlist);
}
my_bool maria_ft_boolean_check_syntax_string(const uchar *str)
{
uint i, j;
if (!str ||
(strlen((const char *) str) + 1 != sizeof(ft_boolean_syntax)) ||
(str[0] != ' ' && str[1] != ' '))
return 1;
for (i=0; i<sizeof(ft_boolean_syntax); i++)
{
/* limiting to 7-bit ascii only */
if ((unsigned char)(str[i]) > 127 ||
my_isalnum(default_charset_info, str[i]))
return 1;
for (j=0; j<i; j++)
if (str[i] == str[j] && (i != 11 || j != 10))
return 1;
}
return 0;
}
/*
RETURN VALUE
0 - eof
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment