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

Function check_field_number

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

Source from the content-addressed store, hash-verified

3313 */
3314
3315static int
3316check_field_number(const PGresult *res, int field_num)
3317{
3318 if (!res)
3319 return false; /* no way to display error message... */
3320 if (field_num < 0 || field_num >= res->numAttributes)
3321 {
3322 pqInternalNotice(&res->noticeHooks,
3323 "column number %d is out of range 0..%d",
3324 field_num, res->numAttributes - 1);
3325 return false;
3326 }
3327 return true;
3328}
3329
3330static int
3331check_tuple_field_number(const PGresult *res,

Callers 8

PQsetvalueFunction · 0.85
PQfnameFunction · 0.85
PQftableFunction · 0.85
PQftablecolFunction · 0.85
PQfformatFunction · 0.85
PQftypeFunction · 0.85
PQfsizeFunction · 0.85
PQfmodFunction · 0.85

Calls 1

pqInternalNoticeFunction · 0.85

Tested by

no test coverage detected