Skip to content

Commit e299b75

Browse files
committed
Fix tests
1 parent a9e0a12 commit e299b75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/nodes_common.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,11 @@ get_partitioned_attr_clauses(List *restrictinfo_list,
367367

368368
ctx.count = 0;
369369
ctx.prel_expr = prel->expr;
370+
if (partitioned_rel != 1)
371+
{
372+
ctx.prel_expr = copyObject(prel->expr);
373+
ChangeVarNodes(ctx.prel_expr, 1, partitioned_rel, 0);
374+
}
370375
check_clause_for_expression((Node *) rinfo->clause, &ctx);
371376

372377
if (ctx.count == 1)

0 commit comments

Comments
 (0)