提交 9f9adcc3 编写于 作者: S skylhd 提交者: ob-robot

fix dbms_lob.compare wrong charset length

上级 561c6db3
......@@ -856,7 +856,7 @@ int ObLobManager::compare(ObLobAccessParam& param_left,
char *charset_convert_buff_ptr = nullptr;
bool need_convert_charset = (collation_left != CS_TYPE_BINARY);
uint64_t charset_convert_buff_size = need_convert_charset ?
0 : read_buff_size * ObCharset::CharConvertFactorNum;
read_buff_size * ObCharset::CharConvertFactorNum : 0;
if (OB_ISNULL((read_buff = static_cast<char*>(tmp_allocator->alloc(read_buff_size * 2))))) {
ret = OB_ALLOCATE_MEMORY_FAILED;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册