A small bug in gram.y

From: Gokulakannan Somasundaram <gokul007(at)gmail(dot)com>
To: pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
Subject: A small bug in gram.y
Date: 2009-10-27 01:21:51
Message-ID: 9362e74e0910261821s18a54b4fn49a8483664801904@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
In the gram.y, under a_expr rule
under the subrule "a_expr NOT SIMILAR TO a_expr %prec SIMILAR"
the action is as follows
{
FuncCall *n = makeNode(FuncCall);
n->funcname = SystemFuncName("similar_escape");
n->args = list_make2($5, makeNullAConst(-1));
n->agg_star = FALSE;
n->agg_distinct = FALSE;
n->func_variadic = FALSE;
n->over = NULL;
n->location = @5;
$$ = (Node *) makeSimpleA_Expr(AEXPR_OP, "!~", $1, (Node
*) n, @2);
}

I think the n->location should be @3.

Thanks,
Gokul.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2009-10-27 01:22:37 Re: Parsing config files in a directory
Previous Message Itagaki Takahiro 2009-10-27 00:24:13 Re: Proposal: String key space for advisory locks