> > I was wrong. It's not specified in the syntax rules. Your change is
> > correct. In fact transformLabelExpr() does use
> > ERRCODE_UNDEFINED_OBJECT for missing labels. I also agree with your
> > reasoning behind not using ERRCODE_UNDEFINED_COLUMN.
>
> ERRCODE_UNDEFINED_COLUMN is a subclass of syntax error, so I'm not sure
> this analysis is really valid.

I only meant that the specific error code ERRCODE_SYNTAX_ERROR is wrong here.

The query has valid syntax, and the failure happens later when looking up the
property name in the property graph, so ERRCODE_UNDEFINED_OBJECT still looked
like the best fit, also for consistency with transformLabelExpr().

--
Sami


Reply via email to