| 6252 | |
| 6253 | |
| 6254 | bool Protocol_local::send_list_fields(List<Field> *list, const TABLE_LIST *table_list) |
| 6255 | { |
| 6256 | DBUG_ENTER("send_result_set_metadata"); |
| 6257 | Protocol_text prot(thd); |
| 6258 | List_iterator_fast<Field> it(*list); |
| 6259 | Field *fld; |
| 6260 | |
| 6261 | // if (!thd->mysql) // bootstrap file handling |
| 6262 | // DBUG_RETURN(0); |
| 6263 | |
| 6264 | if (begin_dataset(thd, list->elements)) |
| 6265 | goto err; |
| 6266 | |
| 6267 | for (uint pos= 0 ; (fld= it++); pos++) |
| 6268 | { |
| 6269 | if (prot.store_field_metadata_for_list_fields(thd, fld, table_list, pos)) |
| 6270 | goto err; |
| 6271 | list_fields_send_default(thd, this, fld, pos); |
| 6272 | } |
| 6273 | |
| 6274 | DBUG_RETURN(prepare_for_send(list->elements)); |
| 6275 | err: |
| 6276 | my_error(ER_OUT_OF_RESOURCES, MYF(0)); |
| 6277 | DBUG_RETURN(1); |
| 6278 | } |
| 6279 | |
| 6280 | |
| 6281 | void Protocol_local::prepare_for_resend() |
nothing calls this directly
no test coverage detected