update src/gausskernel/optimizer/plan/subselect.cpp.

查找node时,每次只处理一个
This commit is contained in:
aaronwell
2021-12-17 02:56:51 +00:00
committed by Gitee
parent 50ec3f99a7
commit 97c394acc4

View File

@ -5573,7 +5573,7 @@ void convert_ORANY_to_join(
/* Replace this any sublink with "not null" expr. */
or_clause =
(BoolExpr*)replace_node_clause((Node*)or_clause, (Node*)any_sublink, (Node*)nullTest, RNC_RECURSE_AGGREF);
(BoolExpr*)replace_node_clause((Node*)or_clause, (Node*)any_sublink, (Node*)nullTest, RNC_RECURSE_AGGREF | RNC_REPLACE_FIRST_ONLY);
if (root->glob->sublink_counter != 0 && ENABLE_PRED_PUSH_ALL(root)) {
char *subquery_name = denominate_sublink_name(root->glob->sublink_counter);