diff --git a/src/sql/engine/expr/ob_expr_reverse.h b/src/sql/engine/expr/ob_expr_reverse.h index 3d95d43b7..5f72eb316 100644 --- a/src/sql/engine/expr/ob_expr_reverse.h +++ b/src/sql/engine/expr/ob_expr_reverse.h @@ -72,6 +72,7 @@ inline int ObExprReverse::calc_result_type1(ObExprResType &type, type.set_collation_type(type1.get_collation_type()); type.set_collation_level(type1.get_collation_level()); type.set_length(type1.get_length()); + type.set_length_semantics(type1.get_length_semantics()); } else { ret = OB_ERR_INVALID_TYPE_FOR_OP; LOG_USER_ERROR(OB_ERR_INVALID_TYPE_FOR_OP,