Re: pg_last_error() doesn't return connection errors

Поиск
Список
Период
Сортировка
От Frank Naude
Тема Re: pg_last_error() doesn't return connection errors
Дата
Msg-id AANLkTikSx4sAmvPb0Wwo01JTnN+WPFXC2ZzNtS1Kw=f=@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_last_error() doesn't return connection errors  (Andrew McMillan <andrew@morphoss.com>)
Ответы Re: pg_last_error() doesn't return connection errors  (Grzegorz Ornoch <yanegorz@gmail.com>)
Список pgsql-php
Hi Andrew,

Thank you very much for the reply!

> Alternatively, does pg_errormessage() have the same flaw...?

Unfortunately pg_errormessage() doesn't work either. It returns:

Warning: pg_errormessage() [function.pg-errormessage]: No PostgreSQL
link opened yet in...

> That behaviour doesn't seem particularly unnatural to me,...

It is inconsistent with how the other DB modules behave. I can provide
you with some examples if it would help.

Best regards.

Frank

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

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: pg_last_error() doesn't return connection errors
Следующее
От: Grzegorz Ornoch
Дата:
Сообщение: Re: pg_last_error() doesn't return connection errors