[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:
@ -52,11 +52,12 @@ int ObExprQuote::calc_result_type1(ObExprResType &type, ObExprResType &type1,
|
||||
} else {
|
||||
type.set_varchar();
|
||||
type.set_length(2 * type1.get_length() + 2);
|
||||
if OB_FAIL(aggregate_charsets_for_string_result(type, &type1, 1, type_ctx.get_coll_type())) {
|
||||
if OB_FAIL(aggregate_charsets_for_string_result(type, &type1, 1, type_ctx)) {
|
||||
LOG_WARN("aggregate charset for res failed", K(ret));
|
||||
} else {
|
||||
type1.set_calc_type(ObVarcharType);
|
||||
type1.set_calc_collation_type(type.get_collation_type());
|
||||
type1.set_calc_collation_level(type.get_collation_level());
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user