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

Method send_data

sql/sql_class.cc:3405–3424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3403/* Send data to client. Returns 0 if ok */
3404
3405int select_send::send_data(List<Item> &items)
3406{
3407 Protocol *protocol= thd->protocol;
3408 DBUG_ENTER("select_send::send_data");
3409
3410 protocol->prepare_for_resend();
3411 if (protocol->send_result_set_row(&items))
3412 {
3413 protocol->remove_last_row();
3414 DBUG_RETURN(TRUE);
3415 }
3416
3417 thd->inc_sent_row_count(1);
3418
3419 /* Don't return error if disconnected, only if write fails */
3420 if (likely(thd->vio_ok()))
3421 DBUG_RETURN(protocol->write());
3422
3423 DBUG_RETURN(0);
3424}
3425
3426
3427bool select_send::send_eof()

Callers

nothing calls this directly

Calls 15

my_b_writeFunction · 0.85
my_charset_sameFunction · 0.85
my_errorFunction · 0.85
push_warning_printfFunction · 0.85
my_ismbcharFunction · 0.85
my_messageFunction · 0.85
send_result_set_rowMethod · 0.80
inc_sent_row_countMethod · 0.80
vio_okMethod · 0.80
source_end_posMethod · 0.80
full_nameMethod · 0.80

Tested by

no test coverage detected