bugfix: char function data error in gc col

This commit is contained in:
obdev
2021-07-10 15:50:13 +08:00
committed by wangzelin.wzl
parent eb4dc36332
commit c6f5f093e9
2 changed files with 37 additions and 1 deletions

View File

@ -1608,7 +1608,7 @@ int ObRawExprResolverImpl::process_char_charset_node(const ParseNode* node, ObRa
LOG_WARN("invalid character set", K(charset_str), K(ret));
LOG_USER_ERROR(OB_ERR_UNKNOWN_CHARSET, charset_str.length(), charset_str.ptr());
} else {
ObCollationType coll_type = ObCharset::get_default_collation(charset_type);
ObCollationType coll_type = ObCharset::get_system_collation();
ObObj val;
val.set_varchar(charset_str);
val.set_collation_type(coll_type);