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