[CP][BUGFIX] fix repeat deduce text type compat
This commit is contained in:
@ -47,9 +47,7 @@ int ObExprRepeat::calc_result_type2(ObExprResType &type,
|
|||||||
{
|
{
|
||||||
int ret = OB_SUCCESS;
|
int ret = OB_SUCCESS;
|
||||||
if (GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_4_2_0_0) {
|
if (GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_4_2_0_0) {
|
||||||
if (!text.is_string_type()) {
|
text.set_calc_type(common::ObVarcharType);
|
||||||
text.set_calc_type(common::ObVarcharType);
|
|
||||||
}
|
|
||||||
} else if (!ob_is_text_tc(text.get_type()) && !text.is_null()) {
|
} else if (!ob_is_text_tc(text.get_type()) && !text.is_null()) {
|
||||||
text.set_calc_type(common::ObVarcharType);
|
text.set_calc_type(common::ObVarcharType);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user