Lines Matching refs:meta

1231 	MYSQLND_FIELD *meta;  in php_mysqlnd_rset_field_read()  local
1260 meta = packet->metadata; in php_mysqlnd_rset_field_read()
1267 *(const char **)(((char*)meta) + rset_field_offsets[i]) = mysqlnd_empty_string; in php_mysqlnd_rset_field_read()
1268 *(unsigned int *)(((char*)meta) + rset_field_offsets[i+1]) = 0; in php_mysqlnd_rset_field_read()
1273 *(const char **)(((char *)meta) + rset_field_offsets[i]) = (const char *)p; in php_mysqlnd_rset_field_read()
1274 *(unsigned int *)(((char*)meta) + rset_field_offsets[i+1]) = len; in php_mysqlnd_rset_field_read()
1291 meta->charsetnr = uint2korr(p); in php_mysqlnd_rset_field_read()
1295 meta->length = uint4korr(p); in php_mysqlnd_rset_field_read()
1299 meta->type = uint1korr(p); in php_mysqlnd_rset_field_read()
1303 meta->flags = uint2korr(p); in php_mysqlnd_rset_field_read()
1307 meta->decimals = uint1korr(p); in php_mysqlnd_rset_field_read()
1317 (meta->type <= MYSQL_TYPE_INT24 && in php_mysqlnd_rset_field_read()
1318 (meta->type != MYSQL_TYPE_TIMESTAMP || meta->length == 14 || meta->length == 8) in php_mysqlnd_rset_field_read()
1319 ) || meta->type == MYSQL_TYPE_YEAR) in php_mysqlnd_rset_field_read()
1321 meta->flags |= NUM_FLAG; in php_mysqlnd_rset_field_read()
1336 meta->def = mnd_pemalloc(len + 1, packet->persistent_alloc); in php_mysqlnd_rset_field_read()
1337 if (!meta->def) { in php_mysqlnd_rset_field_read()
1341 memcpy(meta->def, p, len); in php_mysqlnd_rset_field_read()
1342 meta->def[len] = '\0'; in php_mysqlnd_rset_field_read()
1343 meta->def_length = len; in php_mysqlnd_rset_field_read()
1347 root_ptr = meta->root = mnd_pemalloc(total_len, packet->persistent_alloc); in php_mysqlnd_rset_field_read()
1353 meta->root_len = total_len; in php_mysqlnd_rset_field_read()
1355 if (meta->name != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1356 meta->sname = zend_string_init(meta->name, meta->name_length, packet->persistent_alloc); in php_mysqlnd_rset_field_read()
1358 meta->sname = ZSTR_EMPTY_ALLOC(); in php_mysqlnd_rset_field_read()
1360 meta->name = ZSTR_VAL(meta->sname); in php_mysqlnd_rset_field_read()
1361 meta->name_length = ZSTR_LEN(meta->sname); in php_mysqlnd_rset_field_read()
1364 if (meta->catalog && meta->catalog != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1365 len = meta->catalog_length; in php_mysqlnd_rset_field_read()
1366 meta->catalog = memcpy(root_ptr, meta->catalog, len); in php_mysqlnd_rset_field_read()
1371 if (meta->db && meta->db != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1372 len = meta->db_length; in php_mysqlnd_rset_field_read()
1373 meta->db = memcpy(root_ptr, meta->db, len); in php_mysqlnd_rset_field_read()
1378 if (meta->table && meta->table != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1379 len = meta->table_length; in php_mysqlnd_rset_field_read()
1380 meta->table = memcpy(root_ptr, meta->table, len); in php_mysqlnd_rset_field_read()
1385 if (meta->org_table && meta->org_table != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1386 len = meta->org_table_length; in php_mysqlnd_rset_field_read()
1387 meta->org_table = memcpy(root_ptr, meta->org_table, len); in php_mysqlnd_rset_field_read()
1392 if (meta->org_name && meta->org_name != mysqlnd_empty_string) { in php_mysqlnd_rset_field_read()
1393 len = meta->org_name_length; in php_mysqlnd_rset_field_read()
1394 meta->org_name = memcpy(root_ptr, meta->org_name, len); in php_mysqlnd_rset_field_read()
1401 DBG_INF_FMT("FIELD=[%s.%s.%s]", meta->db? meta->db:"*NA*", meta->table? meta->table:"*NA*", in php_mysqlnd_rset_field_read()
1402 meta->name? meta->name:"*NA*"); in php_mysqlnd_rset_field_read()