From: | "Rob Arnold" <rob(at)cabrion(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org>, "Fran Fabrizio" <ffabrizio(at)mmrd(dot)com> |
Subject: | Re: Error Codes? |
Date: | 2001-10-10 19:11:01 |
Message-ID: | 000401c151bf$63b84a70$4901010a@canrion.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Look at $db->errstr That has the text version of the error code.
--rob
----- Original Message -----
From: "Fran Fabrizio" <ffabrizio(at)mmrd(dot)com>
To: <pgsql-general(at)postgresql(dot)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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Mitch Vincent | 2001-10-10 19:34:13 | Re: kinda newbie - ish question |
Previous Message | Fran Fabrizio | 2001-10-10 18:48:13 | Error Codes? |