fix pl json type set incorrect

This commit is contained in:
obdev
2023-06-19 03:18:10 +00:00
committed by ob-robot
parent 13327b58d4
commit f163f7280c

View File

@ -1607,10 +1607,6 @@ int ObPLResolver::resolve_sp_scalar_type(ObIAllocator &allocator,
ObObjType type = scalar_data_type.get_obj_type();
type = ob_is_lob_locator(type) ? ObLongTextType : type;
int32_t length = scalar_data_type.get_length();
if (ob_is_json(type)) {
length = length < 0 ? 0 : length;
type = ObLongTextType;
}
if (OB_FAIL(ObDDLResolver::check_text_length(scalar_data_type.get_charset_type(),
scalar_data_type.get_collation_type(),
ident_name.ptr(),