Re: PQdb() fails with coredump when PQconnectDB() passed invalid parameter.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PQdb() fails with coredump when PQconnectDB() passed invalid parameter.
Дата
Msg-id 12706.1096652194@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PQdb() fails with coredump when PQconnectDB() passed invalid parameter.  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-bugs
Michael Fuhr <mike@fuhr.org> writes:
> PQdb() is returning NULL, which causes fprintf() to dump core.

It is actually documented that a failed connection might return NULL for
this, so the example code is wrong.  I've corrected the examples to not
assume PQdb can be used on a failed connection.

pg_dump was doing it wrong too :-(

            regards, tom lane

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Bug in PostrgeSQL 8.0beta
Следующее
От: Andrew Grillet
Дата:
Сообщение: Bug report