Re: sql problem with php

Поиск
Список
Период
Сортировка
От ljb
Тема Re: sql problem with php
Дата
Msg-id cmha2i$rjt$1@news.hub.org
обсуждение исходный текст
Ответ на sql problem with php  (Flavio Fonseca <ff@dr.ufu.br>)
Ответы Re: sql problem with php  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-php
ff@dr.ufu.br wrote:
> Hi,
>
>   I am having a problem with a system I developed using php with postgres.
>...
>
> I am not able to get a error_number in pgsql errors, only the error message.
> So when I used pgsql 7.3 a used the string "referential integrity violation"
> to detect this error, but on version 7.4 of pgsql this string was replaced
> with "violates foreign key constraint" .
> Anyone has a definitive solution on this or the way is to wait and change all
> my code on future releases of pgsql?

Unfortunately this is a limitation of the PHP PostgreSQL extension.
PostgreSQL provids access to error numbers (I think as of 7.4)
through libpq PQerrorField(), but PHP doesn't give you access to this yet.

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

Предыдущее
От: Flavio Fonseca
Дата:
Сообщение: sql problem with php
Следующее
От: Robert Treat
Дата:
Сообщение: Re: sql problem with php