[CP] 创建range分区与mysql不兼容

This commit is contained in:
obdev 2022-07-04 10:14:58 +08:00 committed by wangzelin.wzl
parent 491d36e26a
commit c40f0fed2f

View File

@ -1462,6 +1462,14 @@ int ObResolverUtils::check_partition_range_value_result_type(
}
}
} else {
if (OB_SUCC(ret) && !is_allow) {
if (part_value_expr_type == part_column_expr_type) {
is_allow = true;
} else if (ObDateTimeType == part_column_expr_type &&
(ObDateType == part_value_expr_type || ObTimeType == part_value_expr_type)) {
is_allow = true;
}
}
bool is_out_of_range = true;
/* for mysql mode only (siged -> unsigned ) */
if (part_value_expr.is_const_expr() && (part_value_expr_tc == ObIntTC || part_value_expr_tc == ObNumberTC) &&