Lines Matching refs:field_count

40 	const unsigned int field_count = meta->field_count;  in MYSQLND_METHOD()  local
51 while ((data_cursor - data_begin) < (int)(row_count * field_count)) { in MYSQLND_METHOD()
54 const size_t current_row_num = (data_cursor - data_begin) / field_count; in MYSQLND_METHOD()
57 field_count, in MYSQLND_METHOD()
66 for (i = 0; i < field_count; ++i) { in MYSQLND_METHOD()
80 data_cursor += field_count; in MYSQLND_METHOD()
96 const unsigned int field_count = meta->field_count; in MYSQLND_METHOD() local
103 zval * current_row = mnd_emalloc(field_count * sizeof(zval)); in MYSQLND_METHOD()
115 …rc = result->m.row_decoder(&result->row_buffers[row], current_row, field_count, meta->fields, int_… in MYSQLND_METHOD()
123 for (field = 0; field < field_count; field++) { in MYSQLND_METHOD()
155 DBG_INF_FMT("field_count=%u", unbuf->field_count); in MYSQLND_METHOD()
158 for (i = 0; i < unbuf->field_count; i++) { in MYSQLND_METHOD()
208 const unsigned int field_count = set->field_count; in MYSQLND_METHOD() local
212 zval *current_row = data + row * field_count; in MYSQLND_METHOD()
216 for (col = field_count - 1; col >= 0; --col) { in MYSQLND_METHOD()
347 result->meta = result->m.result_meta_init(result, result->field_count); in MYSQLND_METHOD()
361 result->field_count = result->meta->field_count; in MYSQLND_METHOD()
421 switch (rset_header.field_count) { in mysqlnd_query_read_result_set_header()
426 …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()
436 conn->field_count = rset_header.field_count; in mysqlnd_query_read_result_set_header()
468 conn->field_count = rset_header.field_count; in mysqlnd_query_read_result_set_header()
470 result = conn->current_result = conn->m->result_init(rset_header.field_count); in mysqlnd_query_read_result_set_header()
479 result = stmt->result = conn->m->result_init(rset_header.field_count); in mysqlnd_query_read_result_set_header()
584 ((set->data_cursor - set->data) > (result->row_count * result->field_count) )) in MYSQLND_METHOD()
692 unsigned int i, field_count = meta->field_count; in MYSQLND_METHOD() local
696 field_count, in MYSQLND_METHOD()
706 *row = mnd_malloc(field_count * sizeof(char *)); in MYSQLND_METHOD()
711 for (i = 0; i < field_count; i++, field++) { in MYSQLND_METHOD()
822 unsigned int i, field_count = meta->field_count; in MYSQLND_METHOD() local
826 field_count, in MYSQLND_METHOD()
840 for (i = 0; i < field_count; i++, field++) { in MYSQLND_METHOD()
928 result->unbuf = mysqlnd_result_unbuffered_init(result, result->field_count, ps); in MYSQLND_METHOD()
944 row_packet->field_count = result->field_count; in MYSQLND_METHOD()
966 unsigned int field_count = meta->field_count; in MYSQLND_METHOD() local
975 (set->data_cursor - set->data) < (result->stored_data->row_count * field_count)) in MYSQLND_METHOD()
981 uint64_t row_num = (set->data_cursor - set->data) / field_count; in MYSQLND_METHOD()
984 field_count, in MYSQLND_METHOD()
992 for (i = 0; i < field_count; ++i) { in MYSQLND_METHOD()
1009 *row = mnd_malloc(field_count * sizeof(char *)); in MYSQLND_METHOD()
1011 for (i = 0; i < field_count; ++i) { in MYSQLND_METHOD()
1023 set->data_cursor += field_count; in MYSQLND_METHOD()
1059 const unsigned int field_count = meta->field_count; in MYSQLND_METHOD() local
1066 if (set->data_cursor && (set->data_cursor - set->data) < (set->row_count * field_count)) { in MYSQLND_METHOD()
1071 const size_t row_num = (set->data_cursor - set->data) / field_count; in MYSQLND_METHOD()
1074 field_count, in MYSQLND_METHOD()
1082 for (i = 0; i < field_count; ++i) { in MYSQLND_METHOD()
1097 for (i = 0; i < field_count; ++i) { in MYSQLND_METHOD()
1123 set->data_cursor += field_count; in MYSQLND_METHOD()
1146 const unsigned int field_count = meta->field_count; in MYSQLND_METHOD() local
1159 current_row = mnd_emalloc(field_count * sizeof(zval)); in MYSQLND_METHOD()
1167 field_count, in MYSQLND_METHOD()
1179 for (i = 0; i < field_count; ++i) { in MYSQLND_METHOD()
1194 for (i = 0; i < field_count; ++i) { in MYSQLND_METHOD()
1286 row_packet.field_count = meta->field_count; in MYSQLND_METHOD()
1412 …QLND_RES_BUFFERED *) mysqlnd_result_buffered_zval_init(result, result->field_count, flags & MYSQLN… in MYSQLND_METHOD()
1419 …MYSQLND_RES_BUFFERED *) mysqlnd_result_buffered_c_init(result, result->field_count, flags & MYSQLN… in MYSQLND_METHOD()
1442 if (set->row_count * meta->field_count * sizeof(zval *) > SIZE_MAX) { in MYSQLND_METHOD()
1447 set->data = mnd_emalloc((size_t)(set->row_count * meta->field_count * sizeof(zval))); in MYSQLND_METHOD()
1452 memset(set->data, 0, (size_t)(set->row_count * meta->field_count * sizeof(zval))); in MYSQLND_METHOD()
1539 set->data_cursor = set->data + row * result->field_count; in MYSQLND_METHOD()
1598 return result->field_count; in MYSQLND_METHOD()
1737 array_size = result->field_count; in MYSQLND_METHOD()
1911 mysqlnd_result_init(const unsigned int field_count) in mysqlnd_result_init() argument
1928 ret->field_count = field_count; in mysqlnd_result_init()
1940 mysqlnd_result_unbuffered_init(MYSQLND_RES *result, const unsigned int field_count, const zend_bool… in mysqlnd_result_unbuffered_init() argument
1951 ret->lengths = pool->get_chunk(pool, field_count * sizeof(size_t)); in mysqlnd_result_unbuffered_init()
1952 memset(ret->lengths, 0, field_count * sizeof(size_t)); in mysqlnd_result_unbuffered_init()
1955 ret->field_count= field_count; in mysqlnd_result_unbuffered_init()
1974 mysqlnd_result_buffered_zval_init(MYSQLND_RES * result, const unsigned int field_count, const zend_… in mysqlnd_result_buffered_zval_init() argument
1989 ret->lengths = pool->get_chunk(pool, field_count * sizeof(size_t)); in mysqlnd_result_buffered_zval_init()
1990 memset(ret->lengths, 0, field_count * sizeof(size_t)); in mysqlnd_result_buffered_zval_init()
1993 ret->field_count= field_count; in mysqlnd_result_buffered_zval_init()
2015 mysqlnd_result_buffered_c_init(MYSQLND_RES * result, const unsigned int field_count, const zend_boo… in mysqlnd_result_buffered_c_init() argument
2030 ret->lengths = pool->get_chunk(pool, field_count * sizeof(size_t)); in mysqlnd_result_buffered_c_init()
2031 memset(ret->lengths, 0, field_count * sizeof(size_t)); in mysqlnd_result_buffered_c_init()
2034 ret->field_count= field_count; in mysqlnd_result_buffered_c_init()