From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Better handling of parse errors |
Date: | 2002-08-06 12:23:54 |
Message-ID: | 200208061223.g76CNtn08320@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Gavin Sherry | 2002-08-06 12:27:59 | Re: Better handling of parse errors |
Previous Message | Bruce Momjian | 2002-08-06 12:20:25 | Re: DB-local usernames |
From | Date | Subject | |
---|---|---|---|
Next Message | Gavin Sherry | 2002-08-06 12:27:59 | Re: Better handling of parse errors |
Previous Message | Gavin Sherry | 2002-08-06 12:18:00 | Better handling of parse errors |