!6120 修复执行regexp_count函数时ctr+c无法掐断的问题的问题.

Merge pull request !6120 from wangfeihuo/master
This commit is contained in:
opengauss_bot
2024-08-24 02:51:21 +00:00
committed by Gitee

View File

@ -1222,6 +1222,7 @@ static regexp_matches_ctx* setup_regexp_matches(text* orig_str, text* pattern,
/* search for the pattern, perhaps repeatedly */
prev_match_end = 0;
while (RE_wchar_execute(cpattern, wide_str, wide_len, start_search, pmatch_len, pmatch)) {
CHECK_FOR_INTERRUPTS();
/*
* If requested, ignore degenerate matches, which are zero-length
* matches occurring at the start or end of a string or just after a