fix several compatibility bug

This commit is contained in:
akaError
2023-08-10 03:42:46 +00:00
committed by ob-robot
parent ee04441040
commit e0a0ce93bd
10 changed files with 116 additions and 23 deletions

View File

@ -285,7 +285,8 @@ int ObExprColumnConv::calc_result_typeN(ObExprResType &type,
LOG_WARN("inconsistent datatypes", "expected", type_tc, "got", value_tc);
} else {
type_ctx.set_cast_mode(
type_ctx.get_cast_mode() | type_ctx.get_raw_expr()->get_extra() | CM_COLUMN_CONVERT);
type_ctx.get_cast_mode() | type_ctx.get_raw_expr()->get_extra() | CM_COLUMN_CONVERT
| CM_CHARSET_CONVERT_IGNORE_ERR);
types[4].set_calc_meta(type);
}
}