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

Function PQresultErrorField

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

Source from the content-addressed store, hash-verified

3269}
3270
3271char *
3272PQresultErrorField(const PGresult *res, int fieldcode)
3273{
3274 PGMessageField *pfield;
3275
3276 if (!res)
3277 return NULL;
3278 for (pfield = res->errFields; pfield != NULL; pfield = pfield->next)
3279 {
3280 if (pfield->code == fieldcode)
3281 return pfield->contents;
3282 }
3283 return NULL;
3284}
3285
3286int
3287PQntuples(const PGresult *res)

Callers 15

pgfdw_report_errorFunction · 0.85
dblink_res_errorFunction · 0.85
libpqrcv_execFunction · 0.85
processResultsFunction · 0.85
cdbdisp_get_PQerrorFunction · 0.85
try_complete_stepFunction · 0.85
test_pipeline_abortFunction · 0.85
ECPGnoticeReceiverFunction · 0.85
ecpg_raise_backendFunction · 0.85
PQconnectPollFunction · 0.85

Calls

no outgoing calls

Tested by 2

try_complete_stepFunction · 0.68
test_pipeline_abortFunction · 0.68