[FEAT MERGE] 424 SQL compatibility patch 433

Co-authored-by: wjhh2008 <wjh2006-1@163.com>
Co-authored-by: GongYusen <986957406@qq.com>
Co-authored-by: hy-guo <fqboyg@gmail.com>
This commit is contained in:
jingtaoye35
2024-08-23 03:32:01 +00:00
committed by ob-robot
parent cb61323917
commit e537a0c479
296 changed files with 21588 additions and 4122 deletions

View File

@ -47,14 +47,13 @@ int ObExprFindInSet::calc_result_type2(ObExprResType &type,
ObObjMeta coll_types[2];
coll_types[0] = type1.get_obj_meta();
coll_types[1] = type2.get_obj_meta();
if (OB_FAIL(aggregate_charsets_for_comparison(type.get_calc_meta(),
coll_types, 2, type_ctx.get_coll_type()))) {
if (OB_FAIL(aggregate_charsets_for_comparison(type.get_calc_meta(), coll_types, 2, type_ctx))) {
LOG_WARN("failed to aggregate_charsets_for_comparison", K(ret));
} else {
type1.set_calc_type(ObVarcharType);
type1.set_calc_collation_type(type.get_calc_collation_type());
type1.set_calc_collation(type);
type2.set_calc_type(ObVarcharType);
type2.set_calc_collation_type(type.get_calc_collation_type());
type2.set_calc_collation(type);
}
} else {
ret = OB_ERR_INVALID_TYPE_FOR_OP;