[BUGFIX] fix reverse with union

This commit is contained in:
obdev
2023-02-07 11:14:02 +08:00
committed by ob-robot
parent 9c18d252c8
commit 4fc7a1b699

View File

@ -49,6 +49,7 @@ inline int ObExprReverse::calc_result_type1(ObExprResType &type,
if (ObTextType == type1.get_type()
|| ObMediumTextType == type1.get_type()
|| ObLongTextType == type1.get_type()) {
type1.set_calc_type(type1.get_type());
type.set_type(ObLongTextType);
const int32_t mbmaxlen = 4;
const int32_t default_text_length =