diff --git a/src/share/object/ob_obj_cast.cpp b/src/share/object/ob_obj_cast.cpp index b0aff8d6a3..423364c76a 100644 --- a/src/share/object/ob_obj_cast.cpp +++ b/src/share/object/ob_obj_cast.cpp @@ -6205,6 +6205,7 @@ static int text_text(const ObObjType expect_type, ObObjCastParams ¶ms, } } else { out = in; + out.set_type(expect_type); // set expect_type } LOG_DEBUG("obj text cast to text", K(in), K(out), K(ret), K(in_type), K(out_type), K(in_cs_type), K(out_cs_type));