Re: capturing errors
Jaime Casanova <[email protected]> Fri, 29 Jan 2010 12:01:32 -0500
| Newsgroups | gmane.comp.db.postgresql.php |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jan 29, 2010 at 11:06 AM, Jaime Casanova <[email protected]> wrote: > > i'm using pg_result_error_field() but when i print it i get nothing, > is there something i have to configure or what i'm doing bad. > attached a little php script for testing and here is the schema the > script is using (obviously the error i'm trying to catch here is > unique violation) seems like i have to use pg_send_query() for the pg_result_error_field() function to be used, but the problem is that this is asynchronous could be a problem if i use transactions? -- Atentamente, Jaime Casanova Soporte y capacitación de PostgreSQL AsesorÃa y desarrollo de sistemas Guayaquil - Ecuador Cel. +59387171157 -- Sent via pgsql-php mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-php