From a74a280f709fe0597da0b4936a26b9e52553c10e Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 30 Nov 2022 08:07:41 +0000 Subject: [PATCH] [CP]fix const number of fast parse and normal parse is different bug --- src/sql/plan_cache/ob_sql_parameterization.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/plan_cache/ob_sql_parameterization.cpp b/src/sql/plan_cache/ob_sql_parameterization.cpp index 57a53d985..c2aa82aba 100644 --- a/src/sql/plan_cache/ob_sql_parameterization.cpp +++ b/src/sql/plan_cache/ob_sql_parameterization.cpp @@ -653,7 +653,8 @@ int ObSqlParameterization::transform_tree(TransformTreeCtx &ctx, ctx.is_project_list_scope_ = true; } for (int32_t i = 0; - OB_SUCC(ret) && i < root->num_child_ && root->type_ != T_QUESTIONMARK && root->type_ != T_VARCHAR && root->type_ != T_CHAR; + OB_SUCC(ret) && i < root->num_child_ && root->type_ != T_QUESTIONMARK + && root->type_ != T_VARCHAR && root->type_ != T_CHAR && root->type_ != T_NCHAR; ++i) { //如果not_param本来就是true则不需要再判断;因为某结点判断为true,则该结点子树均为true; if (OB_ISNULL(root->children_)) {