Better handling of parse errors

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Better handling of parse errors
Дата
Msg-id Pine.LNX.4.21.0208062211200.16671-101000@linuxworld.com.au
обсуждение исходный текст
Ответы Re: Better handling of parse errors
Re: Better handling of parse errors
Список pgsql-hackers
Hi all,

Attached is a small patch to scan.l for consideration. It hands
yyerror() the position in the query string of the token which caused a
parse error. It is not even close to an implementation of error handling
a-la SQL99 but it certainly makes debugging complicated queries easier.

I've done some testing and it appears to hit the offending token pretty
accurately.

Can anyone find a way to break this? If not, I'd love to see it in 7.3.

Gavin

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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: CVS sources doesn't compiles
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: DB-local usernames