[fpc-pascal] Re: TPQConnection: Duplicated error message.

Michael Van Canneyt michael at freepascal.org
Fri Apr 5 11:09:15 CEST 2013



On Fri, 5 Apr 2013, Ludo Brands wrote:

> On 04/05/2013 09:10 AM, Reinier Olislagers wrote:
>>> I'm sure the guy who implemented this (I think Ludo Brands) can tell you
>> exactly what's going on.
>>
>
> Yes;)
>
> The background of spitting out the complete error detail was people
> complaining about not getting the hints as they are used to when using
> PGAdmin3 or psql. Also there are many places in sqldb where the pg error
> is obfuscated by a generic sqldb message and where the PG returned error
> message has a lot of additional info and is not a duplicate.
>
> Turning off the full info by default is in light of above imho a big
> step backwards. Usually people complain about getting not enough info.

The message contains still the original PostGres error message, of course I didn't delete that.

It is only the rest (hint, primary error, error code, error character etc.) that is disabled

> An option to get less info is fine but shouldn't be turned on by default.

No problem. I've changed the default value of VerboseErrors to true. Rev. 24154.



Michael.



More information about the fpc-pascal mailing list