From 8d8bb1fa42f243af810fec9d962ea26db787ac77 Mon Sep 17 00:00:00 2001 From: wjhh2008 Date: Tue, 7 Nov 2023 07:09:54 +0000 Subject: [PATCH] [CP] fix reverse deduce bug --- src/sql/engine/expr/ob_expr_reverse.h | 1 + 1 file changed, 1 insertion(+) 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,