Re: [GENERAL] [OT] Postgresql and PHP

Поиск
Список
Период
Сортировка
От Alessandro Baggi
Тема Re: [GENERAL] [OT] Postgresql and PHP
Дата
Msg-id 51641bc9-3a13-9a91-3b10-37bdc5ad03ba@gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] [OT] Postgresql and PHP  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Hi Adrian,

>
> And what is the count?
>

Reported is 1

>
> How do you know it fails?
>

Really I don't know if it fails but

$query = pg_query_params(....);
if(!$query)
{
    echo pg_last_error($dbcon);
    echo "ERROR";
} else {
    $row = pg_fetch_assoc($query);
    if(!$row)
    {
        echo "some error";
    }

}

does not help to check if there are errors?

With this code I block in the first statement with "ERROR" string
printed and not real error. I've also tried to see if pg_last_error()
works with query keywords errors  (Select * from nonexisttable) and works.





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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: [GENERAL] [OT] Postgresql and PHP
Следующее
От: Alessandro Baggi
Дата:
Сообщение: Re: [GENERAL] [OT] Postgresql and PHP