| 128 | } |
| 129 | |
| 130 | IntVal ValidateMem(FunctionContext* context) { |
| 131 | uint8_t* buffer = context->Allocate(0); |
| 132 | EXPECT_TRUE(buffer != NULL); |
| 133 | buffer = context->Reallocate(buffer, 10); |
| 134 | EXPECT_TRUE(buffer != NULL); |
| 135 | memset(buffer, 0, 10); |
| 136 | context->Free(buffer); |
| 137 | return IntVal::null(); |
| 138 | } |
| 139 | |
| 140 | StringVal TimeToString(FunctionContext* context, const TimestampVal& time) { |
| 141 | ptime t(*const_cast<date*>(reinterpret_cast<const date*>(&time.date))); |
nothing calls this directly
no test coverage detected