Re: capturing errors

From: Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: capturing errors
Date: 2010-01-29 17:01:32
Message-ID: 3073cc9b1001290901q3c5b3043j6036a08d7ea757c5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Fri, Jan 29, 2010 at 11:06 AM, Jaime Casanova
<jcasanov(at)systemguards(dot)com(dot)ec> 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

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Gustavo Amarilla Santacruz 2010-01-30 01:07:27 Re: Undefined function pg_connect()
Previous Message Jaime Casanova 2010-01-29 16:11:01 Re: capturing errors