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

Function SPI_getbinval

src/backend/executor/spi.c:1279–1293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1277}
1278
1279Datum
1280SPI_getbinval(HeapTuple tuple, TupleDesc tupdesc, int fnumber, bool *isnull)
1281{
1282 SPI_result = 0;
1283
1284 if (fnumber > tupdesc->natts || fnumber == 0 ||
1285 fnumber <= FirstLowInvalidHeapAttributeNumber)
1286 {
1287 SPI_result = SPI_ERROR_NOATTRIBUTE;
1288 *isnull = true;
1289 return (Datum) NULL;
1290 }
1291
1292 return heap_getattr(tuple, fnumber, tupdesc, isnull);
1293}
1294
1295char *
1296SPI_gettype(TupleDesc tupdesc, int fnumber)

Callers 15

check_primary_keyFunction · 0.85
check_foreign_keyFunction · 0.85
autoincFunction · 0.85
exec_eval_exprFunction · 0.85
query_to_oid_listFunction · 0.85
tsquery_rewrite_queryFunction · 0.85
make_ruledefFunction · 0.85
make_viewdefFunction · 0.85
ts_stat_sqlFunction · 0.85
tsvector_update_triggerFunction · 0.85
test_predtestFunction · 0.85

Calls 1

heap_getattrFunction · 0.85

Tested by 4

test_predtestFunction · 0.68
initialize_worker_spiFunction · 0.68
worker_spi_mainFunction · 0.68
ttdummyFunction · 0.68