| 134 | } |
| 135 | |
| 136 | TupleRow* CreateTupleRow(int32_t val) { |
| 137 | uint8_t* tuple_row_mem = mem_pool_.Allocate(sizeof(int32_t*)); |
| 138 | Tuple* tuple_mem = Tuple::Create(sizeof(char) + sizeof(int32_t), &mem_pool_); |
| 139 | *reinterpret_cast<int32_t *>(tuple_mem->GetSlot(1)) = val; |
| 140 | tuple_mem->SetNotNull(NullIndicatorOffset(0,1)); |
| 141 | TupleRow* row = reinterpret_cast<TupleRow*>(tuple_row_mem); |
| 142 | row->SetTuple(0, tuple_mem); |
| 143 | return row; |
| 144 | } |
| 145 | |
| 146 | TupleRow* CreateNullTupleRow() { |
| 147 | uint8_t* tuple_row_mem = mem_pool_.Allocate(sizeof(int32_t*)); |
nothing calls this directly
no test coverage detected