| 2177 | } |
| 2178 | |
| 2179 | static 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 | |
| 2195 | int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet, |
| 2196 | Table_specification_st *create_info_arg, |
no test coverage detected