Thread: Re: make all ereport in gram.y print out relative location

Re: make all ereport in gram.y print out relative location

From
Alvaro Herrera
Date:
Why remove parsePartitionStrategy?  You could just add an "int location"
parameter to it.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"Los cuentos de hadas no dan al niño su primera idea sobre los monstruos.
Lo que le dan es su primera idea de la posible derrota del monstruo."
                                                   (G. K. Chesterton)



Re: make all ereport in gram.y print out relative location

From
Tom Lane
Date:
jian he <jian.universality@gmail.com> writes:
> now changed to
> static PartitionStrategy parsePartitionStrategy(char *strategy, int location,
> core_yyscan_t yyscanner);

I can take a look at this, since it's basically a followup
to 774171c4f.

            regards, tom lane



Re: make all ereport in gram.y print out relative location

From
Tom Lane
Date:
I wrote:
> I can take a look at this, since it's basically a followup
> to 774171c4f.

Pushed with some cleanup and further hacking.

            regards, tom lane