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

Function append_period

sql/sql_show.cc:2179–2193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2177}
2178
2179static void append_period(THD *thd, String *packet, const LEX_CSTRING &start,
2180 const LEX_CSTRING &end, const LEX_CSTRING &period,
2181 bool ident)
2182{
2183 packet->append(STRING_WITH_LEN(",\n PERIOD FOR "));
2184 if (ident)
2185 append_identifier(thd, packet, period.str, period.length);
2186 else
2187 packet->append(period);
2188 packet->append(STRING_WITH_LEN(" ("));
2189 append_identifier(thd, packet, start.str, start.length);
2190 packet->append(STRING_WITH_LEN(", "));
2191 append_identifier(thd, packet, end.str, end.length);
2192 packet->append(STRING_WITH_LEN(")"));
2193}
2194
2195int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet,
2196 Table_specification_st *create_info_arg,

Callers 1

show_create_table_exFunction · 0.85

Calls 2

append_identifierFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected