| 112 | } |
| 113 | |
| 114 | IntVal ValidateUdf(FunctionContext* context) { |
| 115 | EXPECT_EQ(context->version(), FunctionContext::v1_3); |
| 116 | EXPECT_FALSE(context->has_error()) << context->error_msg(); |
| 117 | EXPECT_TRUE(context->error_msg() == NULL); |
| 118 | return IntVal::null(); |
| 119 | } |
| 120 | |
| 121 | IntVal ValidateFail(FunctionContext* context) { |
| 122 | EXPECT_FALSE(context->has_error()); |