| 3403 | /* Send data to client. Returns 0 if ok */ |
| 3404 | |
| 3405 | int 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 | |
| 3427 | bool select_send::send_eof() |
nothing calls this directly
no test coverage detected