| 40 | */ |
| 41 | |
| 42 | static bool fk_info_append_fields(THD *thd, String *str, |
| 43 | List<LEX_CSTRING> *fields) |
| 44 | { |
| 45 | bool res= FALSE; |
| 46 | LEX_CSTRING *field; |
| 47 | List_iterator_fast<LEX_CSTRING> it(*fields); |
| 48 | |
| 49 | while ((field= it++)) |
| 50 | { |
| 51 | res|= append_identifier(thd, str, field); |
| 52 | res|= str->append(STRING_WITH_LEN(", ")); |
| 53 | } |
| 54 | |
| 55 | str->chop(); |
| 56 | str->chop(); |
| 57 | |
| 58 | return res; |
| 59 | } |
| 60 | |
| 61 | |
| 62 | /** |
no test coverage detected