[BUGFIX] fix enum to str typr error

This commit is contained in:
obdev
2023-03-07 10:11:25 +00:00
committed by ob-robot
parent cc7b6e8574
commit b354b4f0bf
3 changed files with 16 additions and 6 deletions

View File

@ -3840,8 +3840,10 @@ int ObRawExprUtils::create_type_to_str_expr(ObRawExprFactory &expr_factory,
LOG_ERROR("allocate expr operator failed", K(ret));
} else {
out_expr->set_func_name(ObString::make_string(func_name));
if (is_lob_storage(dst_type)) {
out_expr->set_extra(1);
if (ob_is_large_text(dst_type)) {
out_expr->set_extra(static_cast<uint64_t>(dst_type));
} else {
out_expr->set_extra(0);
}
}