bugfix blob_raw dataum cast use expr res allocato return result

This commit is contained in:
shadowao 2023-10-17 02:39:50 +00:00 committed by ob-robot
parent fe20704450
commit 5b2c194ed8

View File

@ -3336,8 +3336,8 @@ CAST_FUNC_NAME(text, raw)
// empty blob treat as null in oracle
if (lib::is_oracle_mode() && in_str.length() == 0) {
res_datum.set_null();
} else {
res_datum.set_string(in_str.ptr(), in_str.length());
} else if (OB_FAIL(common_copy_string(expr, in_str, ctx, res_datum))) {
LOG_WARN("common_copy_string fail", K(ret), "length", in_str.length());
}
}
}