[fpc-pascal] Re: PostgreSQL and error codes
silvioprog at gmail.com
Thu May 23 15:37:36 CEST 2013
2013/5/23 Reinier Olislagers <reinierolislagers at gmail.com>
> On 23-5-2013 3:11, silvioprog wrote:
> > How to get the error code of a data base error? I'm using the
> > PostgreSQL.
> You can catch db specific errors (descendends of EDatabaseError IIRC) in
> an exception - the postgresql descendent was extended with more
> properties that include the error code IIRC, or you can catch
> EDatabaseError but you won't have much detail; see SQLDBTutorial1
> through 3 on the wiki - probably 2 - (it should be in at least one of
> them).... or of course check the documentation for sqldb.
Very good explanation. I'm trying to implement it:
I'll try it, thank you very much!
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal