Re: A small bug in gram.y

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: A small bug in gram.y
Дата
Msg-id 6933.1257268171@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: A small bug in gram.y  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: A small bug in gram.y
Список pgsql-hackers
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Uh, why?  It looks like it's complaining about the constant 123,
>> not about the operator.
> I wrote that before I saw your post, which left me ambivalent.  My
> thinking was that it seems clearest to me when it points to the token
> at which things become untenable.

Our error pointers are *not* about how far to the right did parsing
get, they're about which part of the construct seems to be most
directly related to the problem.  Otherwise most of them would point
at the ending semicolon ;-).  A possibly less flippant example is
select nosuchfunction(1,2,3,avalidfunction(4));              ^
select nosuchfunction(1,2,3,avalidfunction(4));                                                    ^

Which of these is less likely to be misread about which function is
being complained of?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: A small bug in gram.y
Следующее
От: Tom Lane
Дата:
Сообщение: Re: operator exclusion constraints