| 9827 | |
| 9828 | |
| 9829 | int init_ftfuncs(THD *thd, SELECT_LEX *select_lex, bool no_order) |
| 9830 | { |
| 9831 | if (select_lex->ftfunc_list->elements) |
| 9832 | { |
| 9833 | List_iterator<Item_func_match> li(*(select_lex->ftfunc_list)); |
| 9834 | Item_func_match *ifm; |
| 9835 | |
| 9836 | while ((ifm=li++)) |
| 9837 | if (unlikely(!ifm->fixed())) |
| 9838 | /* |
| 9839 | it mean that clause where was FT function was removed, so we have |
| 9840 | to remove the function from the list. |
| 9841 | */ |
| 9842 | li.remove(); |
| 9843 | else if (ifm->init_search(thd, no_order)) |
| 9844 | return 1; |
| 9845 | } |
| 9846 | return 0; |
| 9847 | } |
| 9848 | |
| 9849 | |
| 9850 | bool is_equal(const LEX_CSTRING *a, const LEX_CSTRING *b) |
no test coverage detected