Lines Matching refs:field_count
43 unsigned int field_count = result->meta? result->meta->field_count : 0; in MYSQLND_METHOD() local
51 while ((data_cursor - data_begin) < (int)(row_count * field_count)) { in MYSQLND_METHOD()
54 result->stored_data->row_buffers[(data_cursor - data_begin) / field_count], in MYSQLND_METHOD()
56 result->meta->field_count, in MYSQLND_METHOD()
66 for (i = 0; i < result->field_count; i++) { in MYSQLND_METHOD()
80 data_cursor += field_count; in MYSQLND_METHOD()
158 for (i = 0; i < result->field_count; i++) { in MYSQLND_METHOD()
170 result->field_count - ctor_called_count); in MYSQLND_METHOD()
192 unsigned int field_count = result->field_count; in MYSQLND_METHOD() local
205 zval **current_row = data + row * field_count; in MYSQLND_METHOD()
210 for (col = field_count - 1; col >= 0; --col) { in MYSQLND_METHOD()
334 result->meta = result->m.result_meta_init(result->field_count, result->persistent TSRMLS_CC); in MYSQLND_METHOD()
348 result->field_count = result->meta->field_count; in MYSQLND_METHOD()
414 switch (rset_header->field_count) { in mysqlnd_query_read_result_set_header()
419 …conn->field_count = 0; /* overwrite previous value, or the last value could be used and lead to bu… in mysqlnd_query_read_result_set_header()
429 conn->field_count = rset_header->field_count; in mysqlnd_query_read_result_set_header()
462 conn->field_count = rset_header->field_count; in mysqlnd_query_read_result_set_header()
464 …result = conn->current_result = conn->m->result_init(rset_header->field_count, conn->persistent TS… in mysqlnd_query_read_result_set_header()
473 …result = stmt->result = conn->m->result_init(rset_header->field_count, stmt->persistent TSRMLS_CC); in mysqlnd_query_read_result_set_header()
588 ((set->data_cursor - set->data) > (set->row_count * result->meta->field_count) )) in mysqlnd_fetch_lengths_buffered()
593 previous_row = set->data_cursor - result->meta->field_count; in mysqlnd_fetch_lengths_buffered()
594 for (i = 0; i < result->meta->field_count; i++) { in mysqlnd_fetch_lengths_buffered()
628 field_count = result->field_count; in mysqlnd_fetch_row_unbuffered_c() local
672 row_packet->field_count, in mysqlnd_fetch_row_unbuffered_c()
681 retrow = mnd_malloc(result->field_count * sizeof(char *)); in mysqlnd_fetch_row_unbuffered_c()
683 for (i = 0; i < field_count; i++, field++, hash_key++) { in mysqlnd_fetch_row_unbuffered_c()
783 unsigned int i, field_count = result->field_count; in mysqlnd_fetch_row_unbuffered() local
788 field_count, in mysqlnd_fetch_row_unbuffered()
796 for (i = 0; i < field_count; i++, field++, hash_key++) { in mysqlnd_fetch_row_unbuffered()
889 result->lengths = mnd_ecalloc(result->field_count, sizeof(unsigned long)); in MYSQLND_METHOD()
919 result->row_packet->field_count = result->field_count; in MYSQLND_METHOD()
944 (set->data_cursor - set->data) < (set->row_count * result->meta->field_count)) in mysqlnd_fetch_row_buffered_c()
952 uint64_t row_num = (set->data_cursor - set->data) / result->meta->field_count; in mysqlnd_fetch_row_buffered_c()
955 result->meta->field_count, in mysqlnd_fetch_row_buffered_c()
964 for (i = 0; i < result->field_count; i++) { in mysqlnd_fetch_row_buffered_c()
979 set->data_cursor += result->meta->field_count; in mysqlnd_fetch_row_buffered_c()
982 ret = mnd_malloc(result->field_count * sizeof(char *)); in mysqlnd_fetch_row_buffered_c()
984 for (i = 0; i < result->field_count; i++, field++, hash_key++) { in mysqlnd_fetch_row_buffered_c()
1018 (set->data_cursor - set->data) < (set->row_count * result->meta->field_count)) in mysqlnd_fetch_row_buffered()
1025 uint64_t row_num = (set->data_cursor - set->data) / result->meta->field_count; in mysqlnd_fetch_row_buffered()
1028 result->meta->field_count, in mysqlnd_fetch_row_buffered()
1037 for (i = 0; i < result->field_count; i++) { in mysqlnd_fetch_row_buffered()
1052 for (i = 0; i < result->field_count; i++, field++, hash_key++) { in mysqlnd_fetch_row_buffered()
1089 set->data_cursor += result->meta->field_count; in mysqlnd_fetch_row_buffered()
1144 row_packet->field_count = meta->field_count; in MYSQLND_METHOD()
1191 if (set->row_count * meta->field_count * sizeof(zval *) > SIZE_MAX) { in MYSQLND_METHOD()
1197 set->data = mnd_emalloc((size_t)(set->row_count * meta->field_count * sizeof(zval *))); in MYSQLND_METHOD()
1203 memset(set->data, 0, (size_t)(set->row_count * meta->field_count * sizeof(zval *))); in MYSQLND_METHOD()
1272 result->lengths = mnd_ecalloc(result->field_count, sizeof(unsigned long)); in MYSQLND_METHOD()
1360 result->stored_data->data_cursor = result->stored_data->data + row * result->meta->field_count; in MYSQLND_METHOD()
1382 return result->field_count; in MYSQLND_METHOD()
1681 mysqlnd_result_init(unsigned int field_count, zend_bool persistent TSRMLS_DC) in mysqlnd_result_init() argument
1693 ret->field_count = field_count; in mysqlnd_result_init()