pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ivan Sergio Borgonovo <mail@webthatworks.it>
To: pgsql-php@postgresql.org
Subject: error codes
Date: Wed, 12 May 2004 23:51:24 +0200
Message-ID: <20040512235124.4c2179c5@stige.webthatworks.it> (raw)

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




view thread (2+ messages)

Message-ID: <20040512235124.4c2179c5@stige.webthatworks.it>
Permalink:  ../20040512235124.4c2179c5@stige.webthatworks.it/
Also on:    postgresql.org/message-id/20040512235124.4c2179c5@stige.webthatworks.it

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: mail@webthatworks.it
  Subject: Re: error codes
  In-Reply-To: <20040512235124.4c2179c5@stige.webthatworks.it>
  References: <20040512235124.4c2179c5@stige.webthatworks.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox