From 58a19372f1e38faef75c0b41bc24cdf5211dfc30 Mon Sep 17 00:00:00 2001 From: Shameem Ahmed Date: Wed, 29 May 2024 05:58:50 +0000 Subject: [PATCH] Address review comments Signed-off-by: Shameem Ahmed --- contrib/babelfishpg_tsql/src/procedures.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/contrib/babelfishpg_tsql/src/procedures.c b/contrib/babelfishpg_tsql/src/procedures.c index 88f1b438252..4783887a404 100644 --- a/contrib/babelfishpg_tsql/src/procedures.c +++ b/contrib/babelfishpg_tsql/src/procedures.c @@ -630,10 +630,10 @@ handle_where_clause_attnums(ParseState *pstate, Node *w_clause, List *target_att if (attrno == InvalidAttrNumber) { ereport(ERROR, - (errcode(ERRCODE_UNDEFINED_COLUMN), - errmsg("column \"%s\" of relation \"%s\" does not exist", - name, - RelationGetRelationName(pstate->p_target_relation)))); + (errcode(ERRCODE_UNDEFINED_COLUMN), + errmsg("column \"%s\" of relation \"%s\" does not exist", + name, + RelationGetRelationName(pstate->p_target_relation)))); } target_attnums = lappend_int(target_attnums, attrno); break; @@ -731,17 +731,16 @@ handle_where_clause_restargets_left(ParseState *pstate, Node *w_clause, List *ex if (attrno == InvalidAttrNumber) { ereport(ERROR, - (errcode(ERRCODE_UNDEFINED_COLUMN), - errmsg("column \"%s\" of relation \"%s\" does not exist", - name, - RelationGetRelationName(pstate->p_target_relation)))); + (errcode(ERRCODE_UNDEFINED_COLUMN), + errmsg("column \"%s\" of relation \"%s\" does not exist", + name, + RelationGetRelationName(pstate->p_target_relation)))); } res = (ResTarget *) palloc(sizeof(ResTarget)); res->type = ref->type; res->name = field->val.str; res->indirection = NIL; /* Unused for now */ - res->val = (Node *) ref; /* Store the ColumnRef - * here if needed */ + res->val = (Node *) ref; /* Store the ColumnRef here if needed */ res->location = ref->location; extra_restargets = lappend(extra_restargets, res); @@ -826,8 +825,7 @@ handle_where_clause_restargets_right(ParseState *pstate, Node *w_clause, List *e res->type = ref->type; res->name = field->val.str; res->indirection = NIL; /* Unused for now */ - res->val = (Node *) ref; /* Store the ColumnRef - * here if needed */ + res->val = (Node *) ref; /* Store the ColumnRef here if needed */ res->location = ref->location; extra_restargets = lappend(extra_restargets, res);