fix:47511241,47428434

This commit is contained in:
obdev
2023-02-06 16:53:25 +08:00
committed by ob-robot
parent c78a71c5ca
commit bc0bf5a498
6 changed files with 42 additions and 48 deletions

View File

@ -191,7 +191,19 @@ public:
ObEvalCtx &ctx,
ObDatum &res,
T &str,
common::ObIAllocator *allocator = nullptr);
common::ObIAllocator *allocator = nullptr)
{
int ret = OB_SUCCESS;
ObTextStringDatumResult text_result(expr.datum_meta_.type_, &expr, &ctx, &res);
if (OB_FAIL(text_result.init(str.length(), allocator))) {
LOG_WARN("init lob result failed");
} else if (OB_FAIL(text_result.append(str.ptr(), str.length()))) {
LOG_WARN("failed to append realdata", K(ret), K(str), K(text_result));
} else {
text_result.set_result();
}
return ret;
}
/**
* the following 3 functions is used for json_query and json_mergepatch