Re: [fpc-pascal] Re: PostgreSQL and error codes

2013-05-23 Thread silvioprog
2013/5/23 Reinier Olislagers > 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 > pr

[fpc-pascal] Re: PostgreSQL and error codes

2013-05-22 Thread Reinier Olislagers
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,