DBI and postgres

D

Dominik Werder

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
 
M

Michael Neumann

Dominik said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top