disable implicit cast between gb18030 and gb18030_2022 when insert

This commit is contained in:
xianyu-w
2023-05-15 04:41:21 +00:00
committed by ob-robot
parent 0ff05b2832
commit b1ef77c953
4 changed files with 22 additions and 0 deletions

View File

@ -510,6 +510,8 @@ OB_INLINE int ObExprValuesOp::calc_next_row()
dst_expr->locate_datum_for_write(eval_ctx_) = *datum;
dst_expr->set_evaluated_projected(eval_ctx_);
}
} else if (OB_FAIL(ObCharset::check_valid_implicit_convert(src_meta.cs_type_, dst_expr->datum_meta_.cs_type_))) {
LOG_WARN("failed to check valid implicit convert", K(ret));
} else {
// 需要动态cast原因:
// 对于以下场景: