PHP and error reporting

From: Adam Haberlach <adam(at)newsnipple(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: PHP and error reporting
Date: 2001-02-01 22:52:28
Message-ID: 20010201145228.A4899@newsnipple.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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(at)newsnipple(dot)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.

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruno Dickhoff 2001-02-01 23:32:15 Re: JDBC APPLET Problem
Previous Message Molina Leon Guillermo Alfonso 2001-02-01 22:35:01 Connecting to PostgreSQL from Perl in WNT/W2K