| 9792 | *****************************************************************************/ |
| 9793 | |
| 9794 | int 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 | |
| 9816 | void cleanup_ftfuncs(SELECT_LEX *select_lex) |
no test coverage detected