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

Method print_query_blocks_json

sql/sql_explain.cc:312–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312bool Explain_query::print_query_blocks_json(Json_writer *writer, const bool is_analyze)
313{
314 if (upd_del_plan)
315 upd_del_plan->print_explain_json(this, writer, is_analyze);
316 else if (insert_plan)
317 insert_plan->print_explain_json(this, writer, is_analyze);
318 else
319 {
320 /* Start printing from root node with id=1 */
321 Explain_node *node= get_node(1);
322 if (!node)
323 return false; /* No query plan */
324 node->print_explain_json(this, writer, is_analyze);
325 }
326
327 return true;
328}
329
330void Explain_query::send_explain_json_to_output(Json_writer *writer,
331 select_result_sink *output)

Callers

nothing calls this directly

Calls 1

print_explain_jsonMethod · 0.80

Tested by

no test coverage detected