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

Function fk_info_append_fields

sql/sql_truncate.cc:42–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40*/
41
42static 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/**

Callers 1

fk_info_strFunction · 0.85

Calls 3

append_identifierFunction · 0.70
appendMethod · 0.45
chopMethod · 0.45

Tested by

no test coverage detected