Skip to content

Commit c88f29a

Browse files
authored
Merge pull request IvorySQL#1184 from yuanyl630/fix/1182
Fix raw_expression_tree_walker for ColumnRefOrFuncCall (issue IvorySQL#1182)
2 parents c04e74d + 8cfe2f1 commit c88f29a

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/backend/nodes/nodeFuncs.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4465,17 +4465,12 @@ raw_expression_tree_walker_impl(Node *node,
44654465
break;
44664466
case T_ColumnRefOrFuncCall:
44674467
{
4468-
FuncCall *fcall = ((ColumnRefOrFuncCall *) node)->func;
4468+
ColumnRefOrFuncCall *colf = (ColumnRefOrFuncCall *) node;
44694469

4470-
if (WALK(fcall->args))
4471-
return true;
4472-
if (WALK(fcall->agg_order))
4470+
if (colf->cref && WALK(colf->cref))
44734471
return true;
4474-
if (WALK(fcall->agg_filter))
4472+
if (colf->func && WALK(colf->func))
44754473
return true;
4476-
if (WALK(fcall->over))
4477-
return true;
4478-
/* function name is deemed uninteresting */
44794474
}
44804475
break;
44814476
case T_NamedArgExpr:

0 commit comments

Comments
 (0)