X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C5C86D1E395 for ; Wed, 12 May 2004 18:52:00 -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 83683-07 for ; Wed, 12 May 2004 18:51:40 -0300 (ADT) Received: from vsmtp4.tin.it (unknown [212.216.176.150]) by svr1.postgresql.org (Postfix) with ESMTP id F414DD1E36C for ; Wed, 12 May 2004 18:51:14 -0300 (ADT) Received: from caronte.webthatworks.it (80.180.154.93) by vsmtp4.tin.it (7.0.027) id 4093BD7A0023484C for pgsql-php@postgresql.org; Wed, 12 May 2004 23:51:12 +0200 Received: from stige.webthatworks.it (stige.webthatworks.it [192.168.1.5]) by caronte.webthatworks.it (Postfix) with ESMTP id A530223011C for ; Wed, 12 May 2004 23:51:13 +0200 (CEST) Received: from stige.webthatworks.it (localhost [127.0.0.1]) by stige.webthatworks.it (Postfix) with SMTP id 52089294066 for ; Wed, 12 May 2004 23:51:24 +0200 (CEST) Date: Wed, 12 May 2004 23:51:24 +0200 From: Ivan Sergio Borgonovo To: pgsql-php@postgresql.org Subject: error codes Message-Id: <20040512235124.4c2179c5@stige.webthatworks.it> Organization: WebThatWorks.it X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-suse-linux) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/17 X-Sequence-Number: 2736 How can I obtain the codes described in Appendix A in the PG Docs through PHP? I'd like to avoid to patch PHP as proposed here: http://it.php.net/manual/en/function.pg-result-error.php I'm not interested in the message but just the code. Is there any workaround that doesn't involve recompiling php? Anyone know the code for a duplicate PK violation? thx