Re: [BUGS] ECPG Preprocessor throws Syntax Error [Devel Repository]

2008-12-12 Thread Michael Meskes
On Thu, Dec 11, 2008 at 10:09:40PM +0500, Ahmed Shinwari wrote: > through ECPG preprocessor which I think are potential bugs; > > 1- I get this error message from preprocessor, > > *ERROR: cursor "m_name_cursor" already defined * > > Below is the code snippet, error message is thrown on the last

[BUGS] BUG #4578: Not releaseing memory from PQmakeEmptyPGresult when calling PQisBusy

2008-12-12 Thread Sven Almgren
The following bug has been logged online: Bug reference: 4578 Logged by: Sven Almgren Email address: s...@blocket.se PostgreSQL version: 8.3.5 Operating system: CentOS release 5.2 (Final) Description:Not releaseing memory from PQmakeEmptyPGresult when calling PQisBusy

Re: [BUGS] BUG #4578: Not releaseing memory from PQmakeEmptyPGresult when calling PQisBusy

2008-12-12 Thread Tom Lane
"Sven Almgren" writes: > ==14976== 4,480 (384 direct, 4,096 indirect) bytes in 2 blocks are > definitely lost in loss record 19 of 55 > ==14976==at 0x4A05809: malloc (vg_replace_malloc.c:149) > ==14976==by 0x38FC80E194: PQmakeEmptyPGresult (in > /usr/lib64/libpq.so.5.1) > ==14976==by 0

Re: [BUGS] ECPG Preprocessor throws Syntax Error [Devel Repository]

2008-12-12 Thread Zahid Khan
>I might be missing something here, but where do you see the bug? The cursor is >indeed already defined. What i understand here is,we should be able to DECLARE cursor again with the same name if that is CLOSE already. --- On Fri, 12/12/08, Michael Meskes wrote: From: Michael Meskes Subject:

Re: [BUGS] ECPG Preprocessor throws Syntax Error [Devel Repository]

2008-12-12 Thread Tom Lane
Zahid Khan writes: >> I might be missing something here, but where do you see the bug? The cursor >> is >> indeed already defined. > What i understand here is,we should be able to DECLARE cursor again > with the same name if that is CLOSE already. No, CLOSE reverses the effect of OPEN, not of