Lines Matching refs:new_fields
187 MYSQLND_FIELD * new_fields; in MYSQLND_METHOD() local
201 new_fields = mnd_pecalloc(meta->field_count + 1, sizeof(MYSQLND_FIELD), persistent); in MYSQLND_METHOD()
202 if (!new_fields) { in MYSQLND_METHOD()
216 memcpy(new_fields, orig_fields, (meta->field_count) * sizeof(MYSQLND_FIELD)); in MYSQLND_METHOD()
219 new_fields[i].root = mnd_pemalloc(orig_fields[i].root_len, persistent); in MYSQLND_METHOD()
221 if (!new_fields[i].root) { in MYSQLND_METHOD()
225 memcpy(new_fields[i].root, orig_fields[i].root, new_fields[i].root_len); in MYSQLND_METHOD()
228 new_fields[i].sname = zend_string_copy(orig_fields[i].sname); in MYSQLND_METHOD()
229 new_fields[i].name = ZSTR_VAL(new_fields[i].sname); in MYSQLND_METHOD()
230 new_fields[i].name_length = ZSTR_LEN(new_fields[i].sname); in MYSQLND_METHOD()
234 new_fields[i].org_name = new_fields[i].root + in MYSQLND_METHOD()
238 new_fields[i].table = new_fields[i].root + in MYSQLND_METHOD()
242 new_fields[i].org_table = new_fields[i].root + in MYSQLND_METHOD()
246 new_fields[i].db = new_fields[i].root + (orig_fields[i].db - orig_fields[i].root); in MYSQLND_METHOD()
249 new_fields[i].catalog = new_fields[i].root + (orig_fields[i].catalog - orig_fields[i].root); in MYSQLND_METHOD()
253 new_fields[i].def = mnd_pemalloc(orig_fields[i].def_length + 1, persistent); in MYSQLND_METHOD()
254 if (!new_fields[i].def) { in MYSQLND_METHOD()
258 memcpy(new_fields[i].def, orig_fields[i].def, orig_fields[i].def_length + 1); in MYSQLND_METHOD()
264 new_meta->fields = new_fields; in MYSQLND_METHOD()