fix mysqltest
This commit is contained in:
2
deps/oblib/src/lib/charset/ob_ctype_os.cc
vendored
2
deps/oblib/src/lib/charset/ob_ctype_os.cc
vendored
@ -48,7 +48,7 @@ ob_convert_internal(char *to, uint32 to_length,
|
|||||||
error_num++;
|
error_num++;
|
||||||
} else {
|
} else {
|
||||||
// Not enough characters
|
// Not enough characters
|
||||||
if (!trim_incomplete_tail && cnvres != OB_CS_TOOSMALL) {
|
if (!trim_incomplete_tail && (const uchar*) from < from_end) {
|
||||||
error_num++;
|
error_num++;
|
||||||
from++;
|
from++;
|
||||||
wc= replaced_char;
|
wc= replaced_char;
|
||||||
|
@ -105,7 +105,7 @@ int ObExprNLSSort::convert_to_coll_code(ObEvalCtx &ctx,
|
|||||||
} else {
|
} else {
|
||||||
to_str.assign_ptr(conv_buf, result_len);
|
to_str.assign_ptr(conv_buf, result_len);
|
||||||
}
|
}
|
||||||
LOG_DEBUG("charset convert", K(from_str), K(from_type), K(to_str), K(result_len));
|
LOG_DEBUG("charset convert", KPHEX(from_str.ptr(), from_str.length()), K(from_type), K(to_type), KPHEX(to_str.ptr(), to_str.length()), K(result_len));
|
||||||
} else {
|
} else {
|
||||||
to_str.assign_ptr(from_str.ptr(), from_str.length());
|
to_str.assign_ptr(from_str.ptr(), from_str.length());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user