Merge pull request from GitHub pr175

This commit is contained in:
LINxiansheng
2021-08-11 17:50:35 +08:00
committed by wangzelin.wzl
parent 99f2835249
commit 58f7fb882e
14 changed files with 800 additions and 7 deletions

View File

@ -376,7 +376,7 @@ int ObExprRegexContext::like(const ObString& text, int64_t occurrence, bool& sub
} else if (text.length() < 0 || (text.length() > 0 && OB_ISNULL(text.ptr()))) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid param, source text is null", K(ret), K(text));
} else if (reg_.re_nsub >= 0) {
} else {
size_t nsub = reg_.re_nsub;
ob_regmatch_t pmatch[nsub + 1];
int error = 0;