From cd124403e2cd63fa304ef7fc22a2145710bddbc2 Mon Sep 17 00:00:00 2001 From: hwx65 <1780011298@qq.com> Date: Thu, 22 Aug 2024 08:39:32 +0000 Subject: [PATCH] Fix regexp_replace core caused by incorrect template parameter passing --- src/sql/engine/expr/ob_expr_regexp_replace.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sql/engine/expr/ob_expr_regexp_replace.cpp b/src/sql/engine/expr/ob_expr_regexp_replace.cpp index a7d01e18e0..4af87b97bc 100644 --- a/src/sql/engine/expr/ob_expr_regexp_replace.cpp +++ b/src/sql/engine/expr/ob_expr_regexp_replace.cpp @@ -525,7 +525,7 @@ int ObExprRegexpReplace::vector_regexp_replace(VECTOR_EVAL_FUNC_ARG_DECL) { res_vec->set_null(i); } else { // if text is lob type, res_replace only get locator - ret = vector_regexp_replace_convert( + ret = vector_regexp_replace_convert( VECTOR_EVAL_FUNC_ARG_LIST, text_vec->get_string(i), true, expr.args_[0]->datum_meta_.cs_type_, out_alloc, tmp_alloc, i); } @@ -618,7 +618,7 @@ int ObExprRegexpReplace::vector_regexp_replace(VECTOR_EVAL_FUNC_ARG_DECL) { res_vec->set_null(i); } else { // if text is lob type, res_replace only get locator; - ret = vector_regexp_replace_convert( + ret = vector_regexp_replace_convert( VECTOR_EVAL_FUNC_ARG_LIST, text_vec->get_string(i), true, expr.args_[0]->datum_meta_.cs_type_, out_alloc, tmp_alloc, i); } @@ -661,7 +661,7 @@ int ObExprRegexpReplace::vector_regexp_replace(VECTOR_EVAL_FUNC_ARG_DECL) { } else if (res_replace.empty() && lib::is_oracle_mode()) { res_vec->set_null(i); } else { - ret = vector_regexp_replace_convert(VECTOR_EVAL_FUNC_ARG_LIST, + ret = vector_regexp_replace_convert(VECTOR_EVAL_FUNC_ARG_LIST, res_replace, is_no_pattern_to_replace, res_coll_type, out_alloc, tmp_alloc, i); } }