Lines Matching refs:meta
1254 MYSQLND_FIELD *meta; in php_mysqlnd_rset_field_read() local
1284 meta = packet->metadata; in php_mysqlnd_rset_field_read()
1291 *(const char **)(((char*)meta) + rset_field_offsets[i]) = mysqlnd_empty_string; in php_mysqlnd_rset_field_read()
1292 *(unsigned int *)(((char*)meta) + rset_field_offsets[i+1]) = 0; in php_mysqlnd_rset_field_read()
1297 *(const char **)(((char *)meta) + rset_field_offsets[i]) = (const char *)p; in php_mysqlnd_rset_field_read()
1298 *(unsigned int *)(((char*)meta) + rset_field_offsets[i+1]) = len; in php_mysqlnd_rset_field_read()
1315 meta->charsetnr = uint2korr(p); in php_mysqlnd_rset_field_read()
1319 meta->length = uint4korr(p); in php_mysqlnd_rset_field_read()
1323 meta->type = uint1korr(p); in php_mysqlnd_rset_field_read()
1327 meta->flags = uint2korr(p); in php_mysqlnd_rset_field_read()
1331 meta->decimals = uint1korr(p); in php_mysqlnd_rset_field_read()
1341 (meta->type <= MYSQL_TYPE_INT24 && in php_mysqlnd_rset_field_read()
1342 (meta->type != MYSQL_TYPE_TIMESTAMP || meta->length == 14 || meta->length == 8) in php_mysqlnd_rset_field_read()
1343 ) || meta->type == MYSQL_TYPE_YEAR) in php_mysqlnd_rset_field_read()
1345 meta->flags |= NUM_FLAG; in php_mysqlnd_rset_field_read()
1360 meta->def = mnd_pemalloc(len + 1, packet->persistent_alloc); in php_mysqlnd_rset_field_read()
1361 if (!meta->def) { in php_mysqlnd_rset_field_read()
1365 memcpy(meta->def, p, len); in php_mysqlnd_rset_field_read()
1366 meta->def[len] = '\0'; in php_mysqlnd_rset_field_read()
1367 meta->def_length = len; in php_mysqlnd_rset_field_read()
1371 root_ptr = meta->root = mnd_pemalloc(total_len, packet->persistent_alloc); in php_mysqlnd_rset_field_read()
1377 meta->root_len = total_len; in php_mysqlnd_rset_field_read()
1379 if (meta->name != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1380 meta->sname = zend_string_init(meta->name, meta->name_length, packet->persistent_alloc); in php_mysqlnd_rset_field_read()
1382 meta->sname = ZSTR_EMPTY_ALLOC(); in php_mysqlnd_rset_field_read()
1384 meta->name = ZSTR_VAL(meta->sname); in php_mysqlnd_rset_field_read()
1385 meta->name_length = ZSTR_LEN(meta->sname); in php_mysqlnd_rset_field_read()
1388 if (meta->catalog && meta->catalog != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1389 len = meta->catalog_length; in php_mysqlnd_rset_field_read()
1390 meta->catalog = memcpy(root_ptr, meta->catalog, len); in php_mysqlnd_rset_field_read()
1395 if (meta->db && meta->db != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1396 len = meta->db_length; in php_mysqlnd_rset_field_read()
1397 meta->db = memcpy(root_ptr, meta->db, len); in php_mysqlnd_rset_field_read()
1402 if (meta->table && meta->table != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1403 len = meta->table_length; in php_mysqlnd_rset_field_read()
1404 meta->table = memcpy(root_ptr, meta->table, len); in php_mysqlnd_rset_field_read()
1409 if (meta->org_table && meta->org_table != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1410 len = meta->org_table_length; in php_mysqlnd_rset_field_read()
1411 meta->org_table = memcpy(root_ptr, meta->org_table, len); in php_mysqlnd_rset_field_read()
1416 if (meta->org_name && meta->org_name != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1417 len = meta->org_name_length; in php_mysqlnd_rset_field_read()
1418 meta->org_name = memcpy(root_ptr, meta->org_name, len); in php_mysqlnd_rset_field_read()
1425 DBG_INF_FMT("FIELD=[%s.%s.%s]", meta->db? meta->db:"*NA*", meta->table? meta->table:"*NA*", in php_mysqlnd_rset_field_read()
1426 meta->name? meta->name:"*NA*"); in php_mysqlnd_rset_field_read()