Re: Patch for Improved Syntax Error Reporting - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Patch for Improved Syntax Error Reporting
Date
Msg-id 200108031553.f73Frrw27305@candle.pha.pa.us
Whole thread Raw
In response to Re: Patch for Improved Syntax Error Reporting  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Seems we could easily have the backend return a string with three tokens
> > before/after the syntax error, and that would be enough.
>
> I strongly disagree.  If the "three tokens" are something like ")))",
> how's that going to help you figure out where you tanked your
> parenthesization in a huge query with dozens of parentheses?  See also
> the points I made concerning errors masked by comment removal.

I strongly disagree too.  :-)  (See, I can use the word "strongly" too.)

Anyway, you aren't going to have three parens on both sides of the
error, are you?  I didn't say it was perfect, just easier for the client
coders.

--
  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, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Full Text Indexing Patch
Next
From: Bruce Momjian
Date:
Subject: Re: ODBC Boolean handling