提交 9fa49d5d 编写于 作者: B bf0 提交者: LINGuanRen

fix trim expr deduce bug

上级 fd436db3
...@@ -411,9 +411,9 @@ inline int ObExprTrim::deduce_result_type( ...@@ -411,9 +411,9 @@ inline int ObExprTrim::deduce_result_type(
// deduce charset // deduce charset
ObSEArray<ObExprResType, 2> tmp_types; ObSEArray<ObExprResType, 2> tmp_types;
OZ(tmp_types.push_back(*str_type)); OZ(tmp_types.push_back(*str_type));
if (NULL != pattern_type) { // if (NULL != pattern_type) {
OZ(tmp_types.push_back(*pattern_type)); // OZ(tmp_types.push_back(*pattern_type));
} //}
OZ(aggregate_charsets_for_string_result_with_comparison( OZ(aggregate_charsets_for_string_result_with_comparison(
type, &tmp_types.at(0), tmp_types.count(), type_ctx.get_coll_type())); type, &tmp_types.at(0), tmp_types.count(), type_ctx.get_coll_type()));
str_type->set_calc_collation_type(type.get_collation_type()); str_type->set_calc_collation_type(type.get_collation_type());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册