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)
Список
Дерево обсуждения
Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation? Christof Petig <christof@petig-baender.de>
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 по дате отправления