Re: Error code handling in perl - Mailing list pgsql-interfaces

From Greg Sabino Mullane
Subject Re: Error code handling in perl
Date
Msg-id 0d48f697d3e150fd1633875216f4c1be@biglumber.com
Whole thread Raw
In response to Error code handling in perl  (Elinor Medezinski <elinor@bellatrix.tau.ac.il>)
List pgsql-interfaces
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> although in the documentation it says that the error code is
> "23505" (unique violation).
> Is there no way to identify the error by code from postgres
> via perl?
Currently, DBD::Pg does not support the $sth->state method, but
it is high on the todo list and should appear in the next
version.
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200405212100
-----BEGIN PGP SIGNATURE-----
iD8DBQFArqaMvJuQZxSWSsgRAlYLAKDykM8K4Fyfy+neIjA2a3B+NI4x2wCbBc04
GiaVC2lYiMfuVQfEG/2jKiY=
=1kvf
-----END PGP SIGNATURE-----




pgsql-interfaces by date:

Previous
From:
Date:
Subject: Re: ECPG multiple INSERTS or SELECTS in one command?
Next
From: Michael Meskes
Date:
Subject: Re: Postgres error message limited to 70 char in sqlca