| 310 | } |
| 311 | |
| 312 | bool 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 | |
| 330 | void Explain_query::send_explain_json_to_output(Json_writer *writer, |
| 331 | select_result_sink *output) |
nothing calls this directly
no test coverage detected