I think you will have to build something. If I understand the problem
correctly, PHP's error routine needs the connection handle to get the
error, but there is no connection handle if there is an error (!), so PHP
can't read an error number.
I have seen other people looking for answers to this, but I have never
seen any answers.
Director of Information Services
pgsql-php-owner(at)postgresql(dot)org wrote on 11/12/2004 05:01:11 AM:
> I need help, please - I tried Google, some specialized mailinglist
> and I got no result for a week. I would like to determine PgSQL error
> codes in PHP after executing a query, but I found functions for getting
> error messages only which I found not usable (messages are often
> localised and so on).
In response to
pgsql-php by date
|Next:||From: Markus Bertheau||Date: 2004-11-13 13:41:25|
|Subject: Re: PgSQL error codes in PHP|
|Previous:||From: Dawid Ferenczy||Date: 2004-11-12 13:01:11|
|Subject: PgSQL error codes in PHP|