Re: ecpg - GRANT bug

Lee Kindness <lkindness@csl.co.uk>

From: Lee Kindness <lkindness@csl.co.uk>
To: Bill Studenmund <wrstuden@netbsd.org>
Cc: Lee Kindness <lkindness@csl.co.uk>, Bruce Momjian <pgman@candle.pha.pa.us>, Tom Lane <tgl@sss.pgh.pa.us>, <pgsql-hackers@postgresql.org>, Michael Meskes <meskes@postgresql.org>
Date: 2001-10-17T09:00:31Z
Lists: pgsql-bugs, pgsql-hackers
Bill Studenmund writes:
 > I think this patch is wrong. Wouldn't it be better to make the line number
 > in yylineno be correct? Also, there are users of the line number in pcg.l
 > which you didn't change.
 > Looking at it, I don't see why the line number is off. It is initialized
 > to 1 at the begining and whenever a new file is included. In the generated
 > code, it is incrimented whenever a '\n' is found. Strange...

The main reason I split the patch from the previous one for ecpg was
for this reason - I didn't think it was the correct patch myself.

However after a serious hunt for the root of the problem I've found
that it is actually working correctly in the 7.2 sources and I was
picking up an ecpg from a 7.1.3ish build (which only contained an ecpg
binary). Appologies for the false hunt!

For the record it was fixed in pgc.l 1.79 (meskes 13-Jun-01).

Regards, Lee.