Re: Error Codes? - Mailing list pgsql-general

From Rob Arnold
Subject Re: Error Codes?
Date
Msg-id 000401c151bf$63b84a70$4901010a@canrion.net
Whole thread Raw
In response to Error Codes?  (Fran Fabrizio <ffabrizio@mmrd.com>)
List pgsql-general
Look at $db->errstr  That has the text version of the error code.

--rob

----- Original Message -----
From: "Fran Fabrizio" <ffabrizio@mmrd.com>
To: <pgsql-general@postgresql.org>
Sent: Wednesday, October 10, 2001 2:48 PM
Subject: [GENERAL] Error Codes?


> I'm a bit confused about the current state of error codes in Pg.  The
> docs and
> the mailing list archives seem to indicate that this is a TODO item,
> however,
> at least when using Perl with DBD::Pg, when I call $db->err() or examine
>
> $DBI::err I get a number back.  For instance, 7 if I try to insert too
> many
> columns into a row, and a 1 if the connection fails.  What's the scoop,
> and if
> error codes really do exist, is there a list of such codes?
>
> Thanks,
> Fran
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>


pgsql-general by date:

Previous
From: Fran Fabrizio
Date:
Subject: Error Codes?
Next
From: "Zuev Dmitry"
Date:
Subject: Question about system catalog, documentation and datatype sizes (probably a bug)