Skip to content

[BUG]raw_expression_tree_walker_impl() handle T_ColumnRefOrFuncCall issue #1182

Closed

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

Activity

  1. added
    bug
    on Jan 30, 2026
  2. changed the title [-]raw_expression_tree_walker_impl() handle T_ColumnRefOrFuncCall issue[/-] [+][BUG]raw_expression_tree_walker_impl() handle T_ColumnRefOrFuncCall issue[/+] on Jan 30, 2026
  3. OreoYang commented on Jan 30, 2026

    @OreoYang
    Contributor

    @liujinyang-highgo

    Thanks for the detailed report and for spotting this! We appreciate you providing a solution—it's really helpful.

  4. self-assigned this
    on Feb 2, 2026
  5. yuanyl630 commented on Feb 3, 2026

    @yuanyl630
    Contributor

    PR# #1183 includes the fixing codes based on your submitted patch and adds NULL checks. Please kindly review PR# 1183

  6. liujinyang-highgo commented on Feb 4, 2026

    @liujinyang-highgo
    Author

    That looks good to me.

  7. added 2 commits that reference this issue on Feb 10, 2026
  8. added this to IvorySQL 5 and removed this from IvorySQL 5.3on Feb 28, 2026
  9. moved this to Done in IvorySQL 5on Mar 12, 2026
  10. added this to IvorySQL 5.3 and removed this from IvorySQL 5on Mar 12, 2026
  11. moved this from Backlog to Done in IvorySQL 5.3on Mar 12, 2026
  12. closed this as completedby moving to Done in IvorySQL 5.3on Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions