提交 c40f0fed 编写于 作者: O obdev 提交者: wangzelin.wzl

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

上级 491d36e2
......@@ -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) &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册