Overwrite binding did not skip pl correctly

This commit is contained in:
obdev
2023-01-28 16:49:13 +08:00
committed by ob-robot
parent 7930791a77
commit 09a1574b12

View File

@ -245,7 +245,8 @@ int ObUDRUtils::match_udr_and_refill_ctx(const ObString &pattern,
if (!tenant_config.is_valid()) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("tenant config is invalid", K(ret));
} else if (tenant_config->enable_user_defined_rewrite_rules && !pc_ctx.is_inner_sql()) {
} else if (tenant_config->enable_user_defined_rewrite_rules
&& !(pc_ctx.is_inner_sql() || PC_PL_MODE == pc_ctx.mode_)) {
ObIAllocator &allocator = result.get_mem_pool();
PatternConstConsList cst_cons_list;
if (OB_FAIL(match_udr_item(pattern, session, allocator, item_guard, &cst_cons_list))) {