Skip to content

Commit 5ba02de

Browse files
committed
Fix raw_expression_tree_walker for ColumnRefOrFuncCall (issue IvorySQL#1182)
1 parent de59571 commit 5ba02de

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/backend/nodes/nodeFuncs.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4483,17 +4483,12 @@ raw_expression_tree_walker_impl(Node *node,
44834483
break;
44844484
case T_ColumnRefOrFuncCall:
44854485
{
4486-
FuncCall *fcall = ((ColumnRefOrFuncCall *) node)->func;
4486+
ColumnRefOrFuncCall *colf = (ColumnRefOrFuncCall *) node;
44874487

4488-
if (WALK(fcall->args))
4489-
return true;
4490-
if (WALK(fcall->agg_order))
4488+
if (colf->cref && WALK(colf->cref))
44914489
return true;
4492-
if (WALK(fcall->agg_filter))
4490+
if (colf->func && WALK(colf->func))
44934491
return true;
4494-
if (WALK(fcall->over))
4495-
return true;
4496-
/* function name is deemed uninteresting */
44974492
}
44984493
break;
44994494
case T_NamedArgExpr:

0 commit comments

Comments
 (0)