Re: ecpg - GRANT bug

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lee Kindness <lkindness@csl.co.uk>
Cc: pgsql-hackers@postgresql.org, Michael Meskes <meskes@postgresql.org>, Bruce Momjian <pgman@candle.pha.pa.us>
Date: 2001-10-15T14:10:40Z
Lists: pgsql-bugs, pgsql-hackers
Lee Kindness <lkindness@csl.co.uk> writes:
> The existing code in ecpg/preproc/preproc.y to handle the WITH option
> simply throws an error and aborts the processing... The patch below
> prevents the segfault and also passes on the WITH option to the
> backend, probably a better fix.

I agree.  It shouldn't be ecpg's business to throw errors on behalf of
the backend, especially not "not yet implemented" kinds of errors.
That just causes ecpg to be more tightly coupled to a particular backend
version than it needs to be.

			regards, tom lane