[fpc-pascal] Re: TPQConnection: Duplicated error message.
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Fri Apr 5 11:14:33 CEST 2013
Michael Van Canneyt wrote:
> On Fri, 5 Apr 2013, Mark Morgan Lloyd wrote:
>
>> Michael Van Canneyt wrote:
>>
>>>> Regarding the content of your question in the bug: AFAIU it's for
>>>> backward compatibility. The generic db error shows the error message.
>>>> The specialized PostgreSQL error does the same, but also shows it in
>>>> detail (perhaps, can't remember, there can be a list of multiple
>>>> errors).
>>>> I'm sure the guy who implemented this (I think Ludo Brands) can tell
>>>> you
>>>> exactly what's going on.
>>>
>>> I have changed it, but added an option so you can ask all information
>>> as it was.
>>
>> Name of option please: is it a global or associated with the
>> connection object?
>
> VerboseErrors property of TPQConnection
>
> It's open source, You can look in the sources, you know this ? :)
Yes, I know- obviously. But I thought it worth asking while the point
was in the forefront of both our minds, on the assumption that it would
be quick for you to answer and equally quick for me to add a TODO in an
open project where I'm relying on this behaviour :-)
It also makes sure that the information is available to anybody who gets
to this thread via Google.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list