Re: PQclear question...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PQclear question...
Дата
Msg-id 20019.991175457@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PQclear question...  ("Tim Barnard" <tbarnard@povn.com>)
Список pgsql-general
"Tim Barnard" <tbarnard@povn.com> writes:
> Is it necessary to call PQclear if a query that
> would normally return tuples fails?

If you got a non-NULL result from PQexec, you'd better PQclear it,
or suffer the consequences (memory leak -> eventual application crash).

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Timezones on HPUX
Следующее
От: "Tim Barnard"
Дата:
Сообщение: Re: PQclear question...