Re: BUG #3867: PQconnectdb(NULL) cores instead of errors.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #3867: PQconnectdb(NULL) cores instead of errors.
Дата
Msg-id 9629.1199992867@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #3867: PQconnectdb(NULL) cores instead of errors.  ("Ken Lorber" <keni@stacksafe.com>)
Список pgsql-bugs
"Ken Lorber" <keni@stacksafe.com> writes:
> PQconnectdb(NULL) cores in strdup() in interfaces/libpq/fe-connect.c:3091
> (conninfo_parse).  Throwing an error would be more useful.

99% of library routines will core if you pass them a null for an
argument that that's not specifically documented to be allowed for.
If you're expecting otherwise, you should adjust your expectations.

            regards, tom lane

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

Предыдущее
От: "Ken Lorber"
Дата:
Сообщение: BUG #3867: PQconnectdb(NULL) cores instead of errors.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #3860: xpath crashes backend when is querying xmlagg result