pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Haberlach <adam@newsnipple.com>
To: pgsql-interfaces@postgresql.org
Subject: PHP and error reporting
Date: Thu, 1 Feb 2001 14:52:28 -0800
Message-ID: <20010201145228.A4899@newsnipple.com> (raw)

	We've actually started using the database to enforce permissions and
referential integrity, and now we actually need to know how to deal with
the errors this causes the system to report.

	Is there a better way to do this then parsing the results from
pg_errormessage()?  I would really like a way to get a symbolic result,
rather then a text one.

	If I have to, I'll add a hook directly into the error value function
and submit it to the PHP source base, but I was wondering if anyone had
a simpler way.

-- 
Adam Haberlach            |A cat spends her life conflicted between a
adam@newsnipple.com       |deep, passionate, and profound desire for
http://www.newsnipple.com |fish and an equally deep, passionate, and
'88 EX500                 |profound desire to avoid getting wet.



Message-ID: <20010201145228.A4899@newsnipple.com>
Permalink:  ../20010201145228.A4899@newsnipple.com/
Also on:    postgresql.org/message-id/20010201145228.A4899@newsnipple.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: adam@newsnipple.com
  Subject: Re: PHP and error reporting
  In-Reply-To: <20010201145228.A4899@newsnipple.com>

* 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