* Fetch the "flag" column from an input tuple. * This is an integer column with value 0 for left side, 1 for right side. */
| 99 | * This is an integer column with value 0 for left side, 1 for right side. |
| 100 | */ |
| 101 | static int |
| 102 | fetch_tuple_flag(SetOpState *setopstate, TupleTableSlot *inputslot) |
| 103 | { |
| 104 | SetOp *node = (SetOp *) setopstate->ps.plan; |
| 105 | int flag; |
| 106 | bool isNull; |
| 107 | |
| 108 | flag = DatumGetInt32(slot_getattr(inputslot, |
| 109 | node->flagColIdx, |
| 110 | &isNull)); |
| 111 | Assert(!isNull); |
| 112 | Assert(flag == 0 || flag == 1); |
| 113 | return flag; |
| 114 | } |
| 115 | |
| 116 | /* |
| 117 | * Initialize the hash table to empty. |
no test coverage detected