[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

DBI and postgres

Dominik Werder

2/16/2005 12:13:00 PM

Hello!

Is there a way to get the numerical error codes when using postgres with
the DBI module?
#errstr contains the error as a string but #err is nil here..

thanks!
Dominik
1 Answer

Michael Neumann

2/16/2005 4:41:00 PM

0

Dominik Werder wrote:
> Hello!
>
> Is there a way to get the numerical error codes when using postgres
> with the DBI module?

It would only be possible if the underlying postgres C library provides
these information in it's PGError class. The Postgres Frontend/Backend
Protocol provides these information (at least in version 3.0).

Regards,

Michael