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

Method send_data

sql/sql_show.cc:3216–3234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3214
3215
3216int 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
3236bool select_result_text_buffer::send_result_set_metadata(List<Item> &fields,
3237 uint flag)

Callers 8

print_explain_rowFunction · 0.45
print_explain_regularMethod · 0.45
print_explainMethod · 0.45
fetchMethod · 0.45
end_of_recordsMethod · 0.45

Calls 2

set_current_thdFunction · 0.85
fill_recordFunction · 0.85

Tested by

no test coverage detected