From 5f73779b33bd31fa80bb67f9a8aa26e89db26a71 Mon Sep 17 00:00:00 2001 From: Ashutosh Bapat Date: Tue, 17 Mar 2026 14:30:16 +0530 Subject: [PATCH v20260326 4/4] Cleanup and other cosmetic fixes ... collected over time TODO: provide a proper commit message Author: Man Zeng Author: Ashutosh Bapat --- src/backend/parser/parse_graphtable.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/backend/parser/parse_graphtable.c b/src/backend/parser/parse_graphtable.c index d1d0076789a..bc7195c5ad0 100644 --- a/src/backend/parser/parse_graphtable.c +++ b/src/backend/parser/parse_graphtable.c @@ -95,14 +95,14 @@ transformGraphTablePropertyRef(ParseState *pstate, ColumnRef *cref) { if (pstate->p_expr_kind == EXPR_KIND_SELECT_TARGET) ereport(ERROR, - errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("\"*\" is not supported here"), - parser_errposition(pstate, cref->location)); + (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + errmsg("\"*\" is not supported here"), + parser_errposition(pstate, cref->location))); else ereport(ERROR, - errcode(ERRCODE_SYNTAX_ERROR), - errmsg("\"*\" not allowed here"), - parser_errposition(pstate, cref->location)); + (errcode(ERRCODE_SYNTAX_ERROR), + errmsg("\"*\" not allowed here"), + parser_errposition(pstate, cref->location))); } elvarname = strVal(field1); @@ -129,8 +129,8 @@ transformGraphTablePropertyRef(ParseState *pstate, ColumnRef *cref) pgptup = SearchSysCache2(PROPGRAPHPROPNAME, ObjectIdGetDatum(gpstate->graphid), CStringGetDatum(propname)); if (!HeapTupleIsValid(pgptup)) ereport(ERROR, - errcode(ERRCODE_SYNTAX_ERROR), - errmsg("property \"%s\" does not exist", propname)); + (errcode(ERRCODE_SYNTAX_ERROR), + errmsg("property \"%s\" does not exist", propname))); pgpform = (Form_pg_propgraph_property) GETSTRUCT(pgptup); gpr->location = cref->location; @@ -185,8 +185,9 @@ transformLabelExpr(GraphTableParseState *gpstate, Node *labelexpr) labelid = GetSysCacheOid2(PROPGRAPHLABELNAME, Anum_pg_propgraph_label_oid, ObjectIdGetDatum(gpstate->graphid), CStringGetDatum(labelname)); if (!labelid) ereport(ERROR, - errcode(ERRCODE_UNDEFINED_OBJECT), - errmsg("label \"%s\" does not exist in property graph \"%s\"", labelname, get_rel_name(gpstate->graphid))); + (errcode(ERRCODE_UNDEFINED_OBJECT), + errmsg("label \"%s\" does not exist in property graph \"%s\"", + labelname, get_rel_name(gpstate->graphid)))); lref = makeNode(GraphLabelRef); lref->labelid = labelid; -- 2.34.1