Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation?

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation?
Дата
Msg-id 20020506110051.GE17805@feivel.credativ.de
обсуждение исходный текст
Ответ на Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation?  (Lee Kindness <lkindness@csl.co.uk>)
Список pgsql-interfaces
On Mon, May 06, 2002 at 11:24:36AM +0100, Lee Kindness wrote:
> If I allocate the memory before the FETCH then I (naturally) free
> it. However If I NULL initialise the pointer then libecpg will
> allocate the memory and I must NOT free it - libecpg will free it
> automatically... Yeah?

No. No matter who allocates the memory. You have to free it yourself.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!


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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation?
Следующее
От: "Leslie Herps"
Дата:
Сообщение: [ERROR] pgsql_perl5