| 1277 | } |
| 1278 | |
| 1279 | Datum |
| 1280 | SPI_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 | |
| 1295 | char * |
| 1296 | SPI_gettype(TupleDesc tupdesc, int fnumber) |