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

Method send_list_fields

sql/sql_prepare.cc:6254–6278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6252
6253
6254bool 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));
6275err:
6276 my_error(ER_OUT_OF_RESOURCES, MYF(0));
6277 DBUG_RETURN(1);
6278}
6279
6280
6281void Protocol_local::prepare_for_resend()

Callers

nothing calls this directly

Calls 4

begin_datasetFunction · 0.85
my_errorFunction · 0.85
list_fields_send_defaultFunction · 0.70

Tested by

no test coverage detected