MCPcopy Create free account
hub / github.com/MariaDB/server / init_ftfuncs

Function init_ftfuncs

sql/sql_base.cc:9829–9847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9827
9828
9829int 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
9850bool is_equal(const LEX_CSTRING *a, const LEX_CSTRING *b)

Callers 6

update_single_tableMethod · 0.85
optimize_stage2Method · 0.85
reinitMethod · 0.85
preread_initMethod · 0.85
initialize_tablesMethod · 0.85

Calls 3

fixedMethod · 0.80
init_searchMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected