fix case failed cause by information_schema enhance

This commit is contained in:
obdev
2023-02-07 11:52:26 +08:00
committed by ob-robot
parent e9b85c65a0
commit de327e58f9
14 changed files with 119 additions and 40 deletions

View File

@ -537,7 +537,7 @@ int ObExprCast::get_cast_type(const ObExprResType param_type2,
bool is_explicit_cast = CM_IS_EXPLICIT_CAST(cast_mode);
dst_type.set_collation_type(static_cast<ObCollationType>(parse_node.int16_values_[OB_NODE_CAST_COLL_IDX]));
dst_type.set_type(obj_type);
int64_t maxblen = 4;
int64_t maxblen = ObCharset::CharConvertFactorNum;
if (ob_is_lob_locator(obj_type)) {
// cast(x as char(10)) or cast(x as binary(10))
dst_type.set_full_length(parse_node.int32_values_[OB_NODE_CAST_C_LEN_IDX], param_type2.get_accuracy().get_length_semantics());