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();