[CP] add error code when alloc memory failed

This commit is contained in:
obdev
2023-07-11 18:48:08 +00:00
committed by ob-robot
parent e354f149d2
commit e269245733
12 changed files with 21 additions and 2 deletions

View File

@ -55,6 +55,7 @@ int ObExprFromBase64::calc(ObObj &result,
int64_t pos = 0;
char *output_buf = static_cast<char*>(allocator->alloc(buf_len));
if (OB_ISNULL(output_buf)) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("output_buf is null", K(ret), K(buf_len), K(in_raw_len));
result.set_null();
} else if (OB_FAIL(ObBase64Encoder::decode(buf, in_raw_len,