Overwrite binding did not skip pl correctly
This commit is contained in:
@ -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))) {
|
||||
|
Reference in New Issue
Block a user