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

Function setup_ftfuncs

sql/sql_base.cc:9794–9813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9792*****************************************************************************/
9793
9794int setup_ftfuncs(SELECT_LEX *select_lex)
9795{
9796 List_iterator<Item_func_match> li(*(select_lex->ftfunc_list)),
9797 lj(*(select_lex->ftfunc_list));
9798 Item_func_match *ftf, *ftf2;
9799
9800 while ((ftf=li++))
9801 {
9802 if (ftf->fix_index())
9803 return 1;
9804 lj.rewind();
9805 while ((ftf2=lj++) != ftf)
9806 {
9807 if (ftf->eq(ftf2,1) && !ftf2->master)
9808 ftf2->master=ftf;
9809 }
9810 }
9811
9812 return 0;
9813}
9814
9815
9816void cleanup_ftfuncs(SELECT_LEX *select_lex)

Callers 3

update_single_tableMethod · 0.85
optimize_innerMethod · 0.85
prepare_innerMethod · 0.85

Calls 3

fix_indexMethod · 0.80
rewindMethod · 0.45
eqMethod · 0.45

Tested by

no test coverage detected