compat convert mistaken code with oracle

This commit is contained in:
SevenJ-swj
2023-08-18 11:44:56 +08:00
committed by ob-robot
parent ee8cd5ee54
commit 902896a63e
6 changed files with 100 additions and 96 deletions

View File

@ -3695,6 +3695,7 @@ int ObRawExprUtils::try_add_cast_expr_above(ObRawExprFactory *expr_factory,
// setup zerofill cm
// eg: select concat(cast(c_zf as char(10)), cast(col_no_zf as char(10))) from t1;
ObCastMode cm_zf = cm;
cm_zf |= CM_CHARSET_CONVERT_IGNORE_ERR;
if (expr.get_result_type().has_result_flag(ZEROFILL_FLAG)) {
cm_zf |= CM_ZERO_FILL;
}