Lines Matching refs:new_fields
123 MYSQLND_FIELD * new_fields; in MYSQLND_METHOD() local
135 …new_fields = result->memory_pool->get_chunk(result->memory_pool, (meta->field_count + 1) * sizeof(… in MYSQLND_METHOD()
136 if (!new_fields) { in MYSQLND_METHOD()
139 memset(new_fields, 0, (meta->field_count + 1) * sizeof(MYSQLND_FIELD)); in MYSQLND_METHOD()
145 memcpy(new_fields, orig_fields, (meta->field_count) * sizeof(MYSQLND_FIELD)); in MYSQLND_METHOD()
148 new_fields[i].root = result->memory_pool->get_chunk(result->memory_pool, orig_fields[i].root_len); in MYSQLND_METHOD()
150 if (!new_fields[i].root) { in MYSQLND_METHOD()
154 memcpy(new_fields[i].root, orig_fields[i].root, new_fields[i].root_len); in MYSQLND_METHOD()
157 new_fields[i].sname = zend_string_copy(orig_fields[i].sname); in MYSQLND_METHOD()
158 new_fields[i].name = ZSTR_VAL(new_fields[i].sname); in MYSQLND_METHOD()
159 new_fields[i].name_length = ZSTR_LEN(new_fields[i].sname); in MYSQLND_METHOD()
162 new_fields[i].is_numeric = orig_fields[i].is_numeric; in MYSQLND_METHOD()
163 new_fields[i].num_key = orig_fields[i].num_key; in MYSQLND_METHOD()
166 new_fields[i].org_name = new_fields[i].root + in MYSQLND_METHOD()
170 new_fields[i].table = new_fields[i].root + in MYSQLND_METHOD()
174 new_fields[i].org_table = new_fields[i].root + in MYSQLND_METHOD()
178 new_fields[i].db = new_fields[i].root + (orig_fields[i].db - orig_fields[i].root); in MYSQLND_METHOD()
181 new_fields[i].catalog = new_fields[i].root + (orig_fields[i].catalog - orig_fields[i].root); in MYSQLND_METHOD()
185 …new_fields[i].def = result->memory_pool->get_chunk(result->memory_pool, orig_fields[i].def_length … in MYSQLND_METHOD()
186 if (!new_fields[i].def) { in MYSQLND_METHOD()
190 memcpy(new_fields[i].def, orig_fields[i].def, orig_fields[i].def_length + 1); in MYSQLND_METHOD()
196 new_meta->fields = new_fields; in MYSQLND_METHOD()