* slot_attisnull * * Detect whether an attribute of the slot is null, without actually fetching * it. */
| 366 | * it. |
| 367 | */ |
| 368 | static inline bool |
| 369 | slot_attisnull(TupleTableSlot *slot, int attnum) |
| 370 | { |
| 371 | AssertArg(attnum > 0); |
| 372 | |
| 373 | if (attnum > slot->tts_nvalid) |
| 374 | slot_getsomeattrs(slot, attnum); |
| 375 | |
| 376 | return slot->tts_isnull[attnum - 1]; |
| 377 | } |
| 378 | |
| 379 | /* |
| 380 | * slot_getattr - fetch one attribute of the slot's contents. |
no test coverage detected