X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 27B27D1B25F for ; Fri, 21 May 2004 22:00:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 99688-09 for ; Fri, 21 May 2004 22:00:30 -0300 (ADT) Received: from biglumber.com (biglumber.com [207.228.252.42]) by svr1.postgresql.org (Postfix) with SMTP id 645FAD1B1CA for ; Fri, 21 May 2004 22:00:26 -0300 (ADT) Received: (qmail 30310 invoked from network); 22 May 2004 01:00:30 -0000 Received: from unknown (HELO localhost) (207.228.252.42) by 0 with SMTP; 22 May 2004 01:00:30 -0000 From: "Greg Sabino Mullane" To: pgsql-interfaces@postgresql.org Subject: Re: Error code handling in perl X-PGP-Key: 2529 DF6A B8F7 9407 E944 45B4 BC9B 9067 1496 4AC8 X-Request-PGP: http://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 In-Reply-To: <200405161456.10022.elinor@bellatrix.tau.ac.il> Date: Sat, 22 May 2004 01:00:30 -0000 X-Mailer: JoyMail 1.47 Message-ID: <0d48f697d3e150fd1633875216f4c1be@biglumber.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200405/28 X-Sequence-Number: 4920 -----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-----