From 618ad9980b7561b30e37caa5d9788d1619788292 Mon Sep 17 00:00:00 2001 From: yinyj17 Date: Mon, 14 Aug 2023 02:12:34 +0000 Subject: [PATCH] fix expr concat upgrade compatibility bug --- src/sql/engine/expr/ob_expr_concat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/engine/expr/ob_expr_concat.cpp b/src/sql/engine/expr/ob_expr_concat.cpp index c07776eeef..cd979527a5 100644 --- a/src/sql/engine/expr/ob_expr_concat.cpp +++ b/src/sql/engine/expr/ob_expr_concat.cpp @@ -224,7 +224,7 @@ int ObExprConcat::calc_result_typeN(ObExprResType &type, has_text = true; } } - if (has_text) { + if (has_text && GET_MIN_CLUSTER_VERSION() >= CLUSTER_VERSION_4_2_0_0) { type.set_type(ObLongTextType); } else { type.set_varchar();