cherry-pick bug fix in 3.1

This commit is contained in:
bf0
2021-07-21 23:46:35 +08:00
committed by wangzelin.wzl
parent d49f1baf7d
commit 7fb21bbbe7
23 changed files with 450 additions and 208 deletions

View File

@ -198,6 +198,8 @@ static int convert_string_collation(const ObString& in, const ObCollationType in
ObCharset::charset_type_by_coll(out_collation) == CHARSET_BINARY ||
(ObCharset::charset_type_by_coll(in_collation) == ObCharset::charset_type_by_coll(out_collation))) {
out = in;
} else if (in.empty()) {
out.reset();
} else {
char* buf = NULL;
const int32_t CharConvertFactorNum = 4;