Skip site navigation (1) Skip section navigation (2)

Re: Error code handling in perl

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Error code handling in perl
Date: 2004-05-22 01:00:30
Message-ID: 0d48f697d3e150fd1633875216f4c1be@biglumber.com (view raw or flat)
Thread:
Lists: 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(at)turnstep(dot)com
PGP Key: 0x14964AC8 200405212100
 
-----BEGIN PGP SIGNATURE-----
 
iD8DBQFArqaMvJuQZxSWSsgRAlYLAKDykM8K4Fyfy+neIjA2a3B+NI4x2wCbBc04
GiaVC2lYiMfuVQfEG/2jKiY=
=1kvf
-----END PGP SIGNATURE-----



In response to

pgsql-interfaces by date

Next:From: Michael MeskesDate: 2004-05-22 11:34:12
Subject: Re: Postgres error message limited to 70 char in sqlca
Previous:From: wespvpDate: 2004-05-21 14:38:17
Subject: Re: ECPG multiple INSERTS or SELECTS in one command?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group