Skip to content

[BUG]raw_expression_tree_walker_impl() handle T_ColumnRefOrFuncCall issue #1182

Description

@liujinyang-highgo

description

in raw_expression_tree_walker_impl(), when node type is T_ColumnRefOrFuncCall, current handle is get FunCall node and call walker()to process its data member, that not correct.

if we want to find a FuncCall node in ColumnRefOrFuncCall, call raw_expression_tree_walker_impl() would not find that node.

location

file: nodeFuncs.c
lines: 4484

suggest fix

	case T_ColumnRefOrFuncCall:
		{
			ColumnRefOrFuncCall *colf =  (ColumnRefOrFuncCall *)node;

			if (WALK(colf->cref))
				return true;
			if (WALK(colf->func))
				return true;
		}
		break;

patch

my_modify.patch

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions