Lines Matching refs:meta

31 php_mysqlnd_free_field_metadata(MYSQLND_FIELD *meta)  in php_mysqlnd_free_field_metadata()  argument
33 if (meta) { in php_mysqlnd_free_field_metadata()
34 meta->root = NULL; in php_mysqlnd_free_field_metadata()
35 meta->def = NULL; in php_mysqlnd_free_field_metadata()
36 if (meta->sname) { in php_mysqlnd_free_field_metadata()
37 zend_string_release_ex(meta->sname, 0); in php_mysqlnd_free_field_metadata()
45 MYSQLND_METHOD(mysqlnd_res_meta, read_metadata)(MYSQLND_RES_METADATA * const meta, MYSQLND_CONN_DAT… in MYSQLND_METHOD()
54 for (;i < meta->field_count; i++) { in MYSQLND_METHOD()
58 ZEND_ASSERT(meta->fields[i].root == NULL); in MYSQLND_METHOD()
59 meta->fields[i].root = NULL; in MYSQLND_METHOD()
61 field_packet.metadata = &(meta->fields[i]); in MYSQLND_METHOD()
73 if (mysqlnd_ps_fetch_functions[meta->fields[i].type].func == NULL) { in MYSQLND_METHOD()
74 …DBG_ERR_FMT("Unknown type %u sent by the server. Please send a report to the developers", meta->f… in MYSQLND_METHOD()
75 …Unknown type %u sent by the server. Please send a report to the developers", meta->fields[i].type); in MYSQLND_METHOD()
81 if ((meta->fields[i].is_numeric = ZEND_HANDLE_NUMERIC(field_packet.metadata->sname, idx))) { in MYSQLND_METHOD()
82 meta->fields[i].num_key = idx; in MYSQLND_METHOD()
94 MYSQLND_METHOD(mysqlnd_res_meta, free)(MYSQLND_RES_METADATA * meta) in MYSQLND_METHOD()
100 if ((fields = meta->fields)) { in MYSQLND_METHOD()
102 i = meta->field_count; in MYSQLND_METHOD()
106 meta->fields = NULL; in MYSQLND_METHOD()
118 …OD(mysqlnd_res_meta, clone_metadata)(MYSQLND_RES * result, const MYSQLND_RES_METADATA * const meta) in MYSQLND_METHOD()
124 MYSQLND_FIELD * orig_fields = meta->fields; in MYSQLND_METHOD()
133 new_meta->m = meta->m; in MYSQLND_METHOD()
135 …new_fields = result->memory_pool->get_chunk(result->memory_pool, (meta->field_count + 1) * sizeof(… in MYSQLND_METHOD()
139 memset(new_fields, 0, (meta->field_count + 1) * sizeof(MYSQLND_FIELD)); in MYSQLND_METHOD()
145 memcpy(new_fields, orig_fields, (meta->field_count) * sizeof(MYSQLND_FIELD)); in MYSQLND_METHOD()
146 for (i = 0; i < meta->field_count; i++) { in MYSQLND_METHOD()
194 new_meta->field_count = meta->field_count; in MYSQLND_METHOD()
211 MYSQLND_METHOD(mysqlnd_res_meta, fetch_field)(MYSQLND_RES_METADATA * const meta) in MYSQLND_METHOD()
214 if (meta->current_field >= meta->field_count) { in MYSQLND_METHOD()
219 meta->fields[meta->current_field].name? meta->fields[meta->current_field].name:"", in MYSQLND_METHOD()
220 meta->fields[meta->current_field].max_length); in MYSQLND_METHOD()
221 DBG_RETURN(&meta->fields[meta->current_field++]); in MYSQLND_METHOD()
228 MYSQLND_METHOD(mysqlnd_res_meta, fetch_field_direct)(const MYSQLND_RES_METADATA * const meta, const… in MYSQLND_METHOD()
233 meta->fields[meta->current_field].name? meta->fields[meta->current_field].name:"", in MYSQLND_METHOD()
234 meta->fields[meta->current_field].max_length); in MYSQLND_METHOD()
235 DBG_RETURN(&meta->fields[fieldnr]); in MYSQLND_METHOD()
242 MYSQLND_METHOD(mysqlnd_res_meta, fetch_fields)(MYSQLND_RES_METADATA * const meta) in MYSQLND_METHOD()
245 DBG_RETURN(meta->fields); in MYSQLND_METHOD()
252 MYSQLND_METHOD(mysqlnd_res_meta, field_tell)(const MYSQLND_RES_METADATA * const meta) in MYSQLND_METHOD()
254 return meta->current_field; in MYSQLND_METHOD()
261 MYSQLND_METHOD(mysqlnd_res_meta, field_seek)(MYSQLND_RES_METADATA * const meta, const MYSQLND_FIELD… in MYSQLND_METHOD()
265 return_value = meta->current_field; in MYSQLND_METHOD()
266 meta->current_field = field_offset; in MYSQLND_METHOD()
321 _mysqlnd_plugin_get_plugin_result_metadata_data(const MYSQLND_RES_METADATA * meta, unsigned int plu… in _mysqlnd_plugin_get_plugin_result_metadata_data() argument
325 if (!meta || plugin_id >= mysqlnd_plugin_count()) { in _mysqlnd_plugin_get_plugin_result_metadata_data()
328 DBG_RETURN((void *)((char *)meta + sizeof(MYSQLND_RES_METADATA) + plugin_id * sizeof(void *))); in _mysqlnd_plugin_get_plugin_result_metadata_data()