capturing errors

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема capturing errors
Дата
Msg-id 3073cc9b1001290805w3d93cbcl906aabb8fe739a9d@mail.gmail.com
обсуждение исходный текст
Ответы Re: capturing errors  (Jaime Casanova <jcasanov@systemguards.com.ec>)
Re: capturing errors  (Jaime Casanova <jcasanov@systemguards.com.ec>)
Список pgsql-php
Hi,

I'm trying to capture the error from php to show an informative
message to the user but i haven't managed to get it...

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)
"""
create table t1_fk1(col1 integer primary key);
insert into t1_fk1 values(1);
"""
--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157

Вложения

В списке pgsql-php по дате отправления:

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: problem with connection to remote server
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: capturing errors