fix some optimizer stats and regexp bugs

This commit is contained in:
wangt1xiuyi
2023-02-06 16:25:37 +08:00
committed by ob-robot
parent 9c2fe27efb
commit b01e2e4e0d
6 changed files with 22 additions and 12 deletions

View File

@ -782,7 +782,7 @@ int ObExprRegexContext::get_valid_replace_string(ObIAllocator &alloc,
//oracle mode replace string '\1' <==> '$1' in mysql mode, we need extra convert.
UErrorCode m_error_code = U_ZERO_ERROR;
int32_t group_count = uregex_groupCount(regexp_engine_, &m_error_code);
MEMSET(u_replace, 0, origin_replace.length() * sizeof(UChar));
MEMSET(u_replace, 0, buf_len);
if (OB_FAIL(check_icu_regexp_status(m_error_code))) {
LOG_WARN("failed to check icu regexp status", K(ret), K(u_errorName(m_error_code)));
} else {