Lines Matching refs:orig_fields
188 MYSQLND_FIELD * orig_fields = meta->fields; in MYSQLND_METHOD() local
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()
225 memcpy(new_fields[i].root, orig_fields[i].root, new_fields[i].root_len); in MYSQLND_METHOD()
227 if (orig_fields[i].sname) { in MYSQLND_METHOD()
228 new_fields[i].sname = zend_string_copy(orig_fields[i].sname); in MYSQLND_METHOD()
233 if (orig_fields[i].org_name && orig_fields[i].org_name != mysqlnd_empty_string) { in MYSQLND_METHOD()
235 (orig_fields[i].org_name - orig_fields[i].root); in MYSQLND_METHOD()
237 if (orig_fields[i].table && orig_fields[i].table != mysqlnd_empty_string) { in MYSQLND_METHOD()
239 (orig_fields[i].table - orig_fields[i].root); in MYSQLND_METHOD()
241 if (orig_fields[i].org_table && orig_fields[i].org_table != mysqlnd_empty_string) { in MYSQLND_METHOD()
243 (orig_fields[i].org_table - orig_fields[i].root); in MYSQLND_METHOD()
245 if (orig_fields[i].db && orig_fields[i].db != mysqlnd_empty_string) { in MYSQLND_METHOD()
246 new_fields[i].db = new_fields[i].root + (orig_fields[i].db - orig_fields[i].root); in MYSQLND_METHOD()
248 if (orig_fields[i].catalog && orig_fields[i].catalog != mysqlnd_empty_string) { in MYSQLND_METHOD()
249 new_fields[i].catalog = new_fields[i].root + (orig_fields[i].catalog - orig_fields[i].root); in MYSQLND_METHOD()
252 if (orig_fields[i].def) { in MYSQLND_METHOD()
253 new_fields[i].def = mnd_pemalloc(orig_fields[i].def_length + 1, persistent); in MYSQLND_METHOD()
258 memcpy(new_fields[i].def, orig_fields[i].def, orig_fields[i].def_length + 1); in MYSQLND_METHOD()