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

Method send_explain_json_to_output

sql/sql_explain.cc:330–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void Explain_query::send_explain_json_to_output(Json_writer *writer,
331 select_result_sink *output)
332{
333 CHARSET_INFO *cs= system_charset_info;
334 List<Item> item_list;
335 const String *buf= writer->output.get_string();
336 THD *thd= output->thd;
337 item_list.push_back(new (thd->mem_root)
338 Item_string(thd, buf->ptr(), buf->length(), cs),
339 thd->mem_root);
340 output->send_data(item_list);
341}
342
343bool print_explain_for_slow_log(LEX *lex, THD *thd, String *str)
344{

Callers

nothing calls this directly

Calls 5

get_stringMethod · 0.80
push_backMethod · 0.45
ptrMethod · 0.45
lengthMethod · 0.45
send_dataMethod · 0.45

Tested by

no test coverage detected