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

Function PQgetlength

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

PQgetlength: * returns the actual length of a field value in bytes. */

Source from the content-addressed store, hash-verified

3689 * returns the actual length of a field value in bytes.
3690 */
3691int
3692PQgetlength(const PGresult *res, int tup_num, int field_num)
3693{
3694 if (!check_tuple_field_number(res, tup_num, field_num))
3695 return 0;
3696 if (res->tuples[tup_num][field_num].len != NULL_LEN)
3697 return res->tuples[tup_num][field_num].len;
3698 else
3699 return 0;
3700}
3701
3702/* PQgetisnull:
3703 * returns the null status of a field value.

Callers 13

show_binary_resultsFunction · 0.85
ecpg_get_dataFunction · 0.85
ECPGget_descFunction · 0.85
ecpg_store_resultFunction · 0.85
do_fieldFunction · 0.85
PQdisplayTuplesFunction · 0.85
libpq_fetch_fileFunction · 0.85
receiveFileChunksFunction · 0.85
libpqGetFileFunction · 0.85
createViewAsClauseFunction · 0.85

Calls 1

check_tuple_field_numberFunction · 0.85

Tested by 1

show_binary_resultsFunction · 0.68