Re: allowing multiple PQclear() calls

Поиск
Список
Период
Сортировка
От Boszormenyi Zoltan
Тема Re: allowing multiple PQclear() calls
Дата
Msg-id 50E44E35.40900@cybertec.at
обсуждение исходный текст
Ответ на Re: allowing multiple PQclear() calls  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: allowing multiple PQclear() calls  (Marko Kreen <markokr@gmail.com>)
Список pgsql-hackers
2012-12-11 16:09 keltezéssel, Simon Riggs írta:
> On 11 December 2012 12:18, Boszormenyi Zoltan <zb@cybertec.at> wrote:
>
>>>> Such mechanism already exist - you just need to set
>>>> your PGresult pointer to NULL after each PQclear().
>>> So why doesn't PQclear() do that?
>>
>> Because then PQclear() would need a ** not a *. Do you want its
>> interface changed for 9.3 and break compatibility with previous versions?
> No, but we should introduce a new public API call that is safer,
> otherwise we get people continually re-inventing new private APIs that
> Do the Right Thing, as the two other respondents have shown.
>

How about these macros?

Best regards,
Zoltán Böszörményi

--
----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt, Austria
Web: http://www.postgresql-support.de
      http://www.postgresql.at/


Вложения

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

Предыдущее
От: Claudio Freire
Дата:
Сообщение: Re: default SSL compression (was: libpq compression)
Следующее
От: Marko Kreen
Дата:
Сообщение: Re: allowing multiple PQclear() calls