fix expr concat upgrade compatibility bug

This commit is contained in:
yinyj17
2023-08-14 02:12:34 +00:00
committed by ob-robot
parent 87d2c780c3
commit 618ad9980b

View File

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