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

Function PQgetisnull

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

PQgetisnull: * returns the null status of a field value. */

Source from the content-addressed store, hash-verified

3703 * returns the null status of a field value.
3704 */
3705int
3706PQgetisnull(const PGresult *res, int tup_num, int field_num)
3707{
3708 if (!check_tuple_field_number(res, tup_num, field_num))
3709 return 1; /* pretend it is null */
3710 if (res->tuples[tup_num][field_num].len == NULL_LEN)
3711 return 1;
3712 else
3713 return 0;
3714}
3715
3716/* PQnparams:
3717 * returns the number of input parameters of a prepared statement.

Callers 15

materializeResultFunction · 0.85
storeRowFunction · 0.85
pg_lock_statusFunction · 0.85
get_size_from_segDBsFunction · 0.85
remove_fileFunction · 0.85
libpqrcv_create_slotFunction · 0.85
libpqrcv_processTuplesFunction · 0.85
ResultToDatumFunction · 0.85

Calls 1

check_tuple_field_numberFunction · 0.85

Tested by

no test coverage detected