add debug log for test

This commit is contained in:
wjhh2008
2023-01-28 16:13:12 +08:00
committed by ob-robot
parent 9b51e2b435
commit 455070348e

View File

@ -2626,12 +2626,15 @@ inline bool ObCharset::is_argument_valid(const ObCollationType collation_type, c
(OB_ISNULL(str1) && OB_UNLIKELY(0 != str_len1)) || (OB_ISNULL(str1) && OB_UNLIKELY(0 != str_len1)) ||
(OB_ISNULL(str2) && OB_UNLIKELY(0 != str_len2))) { (OB_ISNULL(str2) && OB_UNLIKELY(0 != str_len2))) {
is_arg_valid = false; is_arg_valid = false;
const ObFatalErrExtraInfoGuard *extra_info = ObFatalErrExtraInfoGuard::get_thd_local_val_ptr();
BACKTRACE(ERROR, true, "invalid argument." BACKTRACE(ERROR, true, "invalid argument."
"collation_type = %d," "collation_type = %d,"
"str1 = %p," "str1 = %p,"
"str1_len = %ld," "str1_len = %ld,"
"str2 = %p," "str2 = %p,"
"str2_len = %ld", collation_type, str1, str_len1, str2, str_len2); "str2_len = %ld,"
"extra_info=(%s)", collation_type, str1, str_len1, str2, str_len2,
(NULL == extra_info) ? NULL : to_cstring(*extra_info));
} else { } else {
ObCharsetInfo *cs = static_cast<ObCharsetInfo *>(ObCharset::charset_arr[collation_type]); ObCharsetInfo *cs = static_cast<ObCharsetInfo *>(ObCharset::charset_arr[collation_type]);
if (OB_ISNULL(cs->cset) || OB_ISNULL(cs->coll)) { if (OB_ISNULL(cs->cset) || OB_ISNULL(cs->coll)) {