Lines Matching refs:fields

326 	if (free_fields && result->fields) {  in _free_result()
328 STR_FREE(result->fields[i].name); in _free_result()
329 STR_FREE(result->fields[i].column_source); in _free_result()
331 efree(result->fields); in _free_result()
1217 result->fields[i].name = estrdup(fname);
1224 result->fields[i].name = estrdup(computed_buf);
1227 result->fields[i].max_length = dbcollen(mssql_ptr->link,i+1);
1230 result->fields[i].column_source = estrdup(source);
1233 result->fields[i].column_source = STR_EMPTY_ALLOC();
1236 result->fields[i].type = coltype(i+1);
1238 switch (result->fields[i].type) {
1247 result->fields[i].numeric = 1;
1253 result->fields[i].numeric = 0;
1272 …MS_SQL_G(get_column_content(mssql_ptr, j+1, &result->data[i][j], result->fields[j].type TSRMLS_CC)…
1385 result->fields = (mssql_field *) safe_emalloc(sizeof(mssql_field), result->num_fields, 0);
1540 add_assoc_stringl(return_value, result->fields[i].name, data, data_len, 1);
1548 add_assoc_long(return_value, result->fields[i].name, Z_LVAL(result->data[result->cur_row][i]));
1555 … add_assoc_double(return_value, result->fields[i].name, Z_DVAL(result->data[result->cur_row][i]));
1563 add_assoc_null(return_value, result->fields[i].name);
1716 add_property_string(return_value, "name",result->fields[field_offset].name, 1);
1717 add_property_long(return_value, "max_length",result->fields[field_offset].max_length);
1718 add_property_string(return_value, "column_source",result->fields[field_offset].column_source, 1);
1719 add_property_long(return_value, "numeric", result->fields[field_offset].numeric);
1720 …add_property_string(return_value, "type", php_mssql_get_field_name(Z_TYPE(result->fields[field_off…
1750 RETURN_LONG(result->fields[field_offset].max_length);
1780 RETURN_STRINGL(result->fields[field_offset].name, strlen(result->fields[field_offset].name), 1);
1810 …p_mssql_get_field_name(Z_TYPE(result->fields[field_offset])), strlen(php_mssql_get_field_name(Z_TY…
1863 if (!strcasecmp(result->fields[i].name, Z_STRVAL_PP(field))) {
1927 result->fields = (mssql_field *) safe_emalloc(sizeof(mssql_field), result->num_fields, 0);
2179 result->fields = (mssql_field *) safe_emalloc(sizeof(mssql_field), num_fields, 0);