MCPcopy Create free account
hub / github.com/apache/cloudberry / PQfname

Function PQfname

src/interfaces/libpq/fe-exec.c:3372–3381  ·  view source on GitHub ↗

* returns NULL if the field_num is invalid */

Source from the content-addressed store, hash-verified

3370 * returns NULL if the field_num is invalid
3371 */
3372char *
3373PQfname(const PGresult *res, int field_num)
3374{
3375 if (!check_field_number(res, field_num))
3376 return NULL;
3377 if (res->attDescs)
3378 return res->attDescs[field_num].name;
3379 else
3380 return NULL;
3381}
3382
3383/*
3384 * PQfnumber: find column number given column name

Callers 15

sql_execFunction · 0.85
libpqrcv_processTuplesFunction · 0.85
printQueryFunction · 0.85
exec_sql_with_resultsetFunction · 0.85
exec_sql_with_resultsetFunction · 0.85
exec_sql_with_resultsetFunction · 0.85
exec_sql_with_resultsetFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

check_field_numberFunction · 0.85