Re: Better handling of parse errors

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Better handling of parse errors
Дата
Msg-id 200208061223.g76CNtn08320@candle.pha.pa.us
обсуждение исходный текст
Ответ на Better handling of parse errors  (Gavin Sherry <swm@linuxworld.com.au>)
Ответы Re: Better handling of parse errors
Re: Better handling of parse errors
Список pgsql-hackers
Can we see some sample output?

---------------------------------------------------------------------------

Gavin Sherry wrote:
> 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

Content-Description: 

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: DB-local usernames
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: Better handling of parse errors