Re: Patch for more readable parse error messages - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Patch for more readable parse error messages
Date
Msg-id 200006091239.IAA18539@candle.pha.pa.us
Whole thread Raw
Responses Re: Patch for more readable parse error messages  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Can someone remind me where we are on this.   I seem to remember we have
to have db clients report the location because of problems with
interfaces handling the error output.

> Hi,
>
> Attached is a patch that will write out slightly more readable parse error
> messages than 'parser: parse error at or near ""'
>
> The format of the error messages is changed to:
>
> jeroen=# create abc ( a int4, b int4 );
> ERROR:  parser: parse error at or near "abc":
> create abc ( a int4, b int4 )
>         *
> jeroen=# select * from t1 where a=1 and;
> ERROR:  parser: parse error at end of:
> select * from t1 where a=1 and
>                                *
>
> The regression tests pass, except where this error is caught.
>
> Please review,
>
> Cheers,
>
>
> Jeroen

[ Attachment, skipping... ]


--
  Bruce Momjian                        |  http://www.op.net/~candle
  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, Pennsylvania 19026

pgsql-patches by date:

Previous
From: "David Reid"
Date:
Subject: BeOS take 2
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: Patch for more readable parse error messages