Lines Matching refs:new_fields
313 MYSQLND_FIELD * new_fields; in MYSQLND_METHOD() local
327 new_fields = mnd_pecalloc(meta->field_count + 1, sizeof(MYSQLND_FIELD), persistent); in MYSQLND_METHOD()
328 if (!new_fields) { in MYSQLND_METHOD()
342 memcpy(new_fields, orig_fields, (meta->field_count) * sizeof(MYSQLND_FIELD)); in MYSQLND_METHOD()
345 new_fields[i].root = mnd_pemalloc(orig_fields[i].root_len, persistent); in MYSQLND_METHOD()
346 if (!new_fields[i].root) { in MYSQLND_METHOD()
349 memcpy(new_fields[i].root, orig_fields[i].root, new_fields[i].root_len); in MYSQLND_METHOD()
352 new_fields[i].name = new_fields[i].root + in MYSQLND_METHOD()
356 new_fields[i].org_name = new_fields[i].root + in MYSQLND_METHOD()
360 new_fields[i].table = new_fields[i].root + in MYSQLND_METHOD()
364 new_fields[i].org_table = new_fields[i].root + in MYSQLND_METHOD()
368 new_fields[i].db = new_fields[i].root + (orig_fields[i].db - orig_fields[i].root); in MYSQLND_METHOD()
371 new_fields[i].catalog = new_fields[i].root + (orig_fields[i].catalog - orig_fields[i].root); in MYSQLND_METHOD()
375 new_fields[i].def = mnd_pemalloc(orig_fields[i].def_length + 1, persistent); in MYSQLND_METHOD()
376 if (!new_fields[i].def) { in MYSQLND_METHOD()
380 memcpy(new_fields[i].def, orig_fields[i].def, orig_fields[i].def_length + 1); in MYSQLND_METHOD()
395 new_meta->fields = new_fields; in MYSQLND_METHOD()