| 3214 | |
| 3215 | |
| 3216 | int select_result_explain_buffer::send_data(List<Item> &items) |
| 3217 | { |
| 3218 | int res; |
| 3219 | THD *cur_thd= current_thd; |
| 3220 | DBUG_ENTER("select_result_explain_buffer::send_data"); |
| 3221 | |
| 3222 | /* |
| 3223 | Switch to the receiveing thread, so that we correctly count memory used |
| 3224 | by it. This is needed as it's the receiving thread that will free the |
| 3225 | memory. |
| 3226 | (TODO: Now that we don't change current_thd in |
| 3227 | Show_explain_request::call_in_target_thread, is this necessary anymore?) |
| 3228 | */ |
| 3229 | set_current_thd(thd); |
| 3230 | fill_record(thd, dst_table, dst_table->field, items, true, false, false); |
| 3231 | res= dst_table->file->ha_write_tmp_row(dst_table->record[0]); |
| 3232 | set_current_thd(cur_thd); |
| 3233 | DBUG_RETURN(MY_TEST(res)); |
| 3234 | } |
| 3235 | |
| 3236 | bool select_result_text_buffer::send_result_set_metadata(List<Item> &fields, |
| 3237 | uint flag) |
no test coverage detected