Lines Matching refs:orig_fields
146 MYSQLND_FIELD * orig_fields = meta->fields; in MYSQLND_METHOD() local
174 memcpy(new_fields, orig_fields, (meta->field_count) * sizeof(MYSQLND_FIELD)); in MYSQLND_METHOD()
177 new_fields[i].root = mnd_pemalloc(orig_fields[i].root_len, persistent); in MYSQLND_METHOD()
183 memcpy(new_fields[i].root, orig_fields[i].root, new_fields[i].root_len); in MYSQLND_METHOD()
185 if (orig_fields[i].sname) { in MYSQLND_METHOD()
186 new_fields[i].sname = zend_string_copy(orig_fields[i].sname); in MYSQLND_METHOD()
191 if (orig_fields[i].org_name && orig_fields[i].org_name != mysqlnd_empty_string) { in MYSQLND_METHOD()
193 (orig_fields[i].org_name - orig_fields[i].root); in MYSQLND_METHOD()
195 if (orig_fields[i].table && orig_fields[i].table != mysqlnd_empty_string) { in MYSQLND_METHOD()
197 (orig_fields[i].table - orig_fields[i].root); in MYSQLND_METHOD()
199 if (orig_fields[i].org_table && orig_fields[i].org_table != mysqlnd_empty_string) { in MYSQLND_METHOD()
201 (orig_fields[i].org_table - orig_fields[i].root); in MYSQLND_METHOD()
203 if (orig_fields[i].db && orig_fields[i].db != mysqlnd_empty_string) { in MYSQLND_METHOD()
204 new_fields[i].db = new_fields[i].root + (orig_fields[i].db - orig_fields[i].root); in MYSQLND_METHOD()
206 if (orig_fields[i].catalog && orig_fields[i].catalog != mysqlnd_empty_string) { in MYSQLND_METHOD()
207 new_fields[i].catalog = new_fields[i].root + (orig_fields[i].catalog - orig_fields[i].root); in MYSQLND_METHOD()
210 if (orig_fields[i].def) { in MYSQLND_METHOD()
211 new_fields[i].def = mnd_pemalloc(orig_fields[i].def_length + 1, persistent); in MYSQLND_METHOD()
216 memcpy(new_fields[i].def, orig_fields[i].def, orig_fields[i].def_length + 1); in MYSQLND_METHOD()