Lines Matching refs:field
55 ps_fetch_from_1_to_8_bytes(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_le… in ps_fetch_from_1_to_8_bytes() argument
58 bool is_bit = field->type == MYSQL_TYPE_BIT; in ps_fetch_from_1_to_8_bytes()
61 if (field->flags & UNSIGNED_FLAG) { in ps_fetch_from_1_to_8_bytes()
75 if (field->flags & ZEROFILL_FLAG) { in ps_fetch_from_1_to_8_bytes()
77 ZVAL_STR(zv, zend_strpprintf(0, "%0*" PRIu64, (int) field->length, uval)); in ps_fetch_from_1_to_8_bytes()
127 ps_fetch_null(zval *zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_… in ps_fetch_null() argument
136 ps_fetch_int8(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend… in ps_fetch_int8() argument
138 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, 1); in ps_fetch_int8()
145 ps_fetch_int16(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zen… in ps_fetch_int16() argument
147 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, 2); in ps_fetch_int16()
154 ps_fetch_int32(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zen… in ps_fetch_int32() argument
156 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, 4); in ps_fetch_int32()
163 ps_fetch_int64(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zen… in ps_fetch_int64() argument
165 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, 8); in ps_fetch_int64()
172 ps_fetch_float(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zen… in ps_fetch_float() argument
185 dval = mysql_float_to_double(fval, (field->decimals >= NOT_FIXED_DEC) ? -1 : (int)field->decimals); in ps_fetch_float()
195 ps_fetch_double(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const ze… in ps_fetch_double() argument
210 ps_fetch_time(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend… in ps_fetch_time() argument
240 if (field->decimals > 0 && field->decimals < 7) { in ps_fetch_time()
242 (t.neg ? "-" : ""), t.hour, t.minute, t.second, field->decimals, in ps_fetch_time()
243 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)))); in ps_fetch_time()
255 ps_fetch_date(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend… in ps_fetch_date() argument
287 ps_fetch_datetime(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const … in ps_fetch_datetime() argument
318 if (field->decimals > 0 && field->decimals < 7) { in ps_fetch_datetime()
320 t.year, t.month, t.day, t.hour, t.minute, t.second, field->decimals, in ps_fetch_datetime()
321 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)))); in ps_fetch_datetime()
333 ps_fetch_string(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const ze… in ps_fetch_string() argument
349 ps_fetch_bit(zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_… in ps_fetch_bit() argument
352 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, length); in ps_fetch_bit()