Re: ECPG Preprocessor throws Syntax Error [Devel Repository]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: khanzahid235(at)yahoo(dot)com
Cc: Ahmed Shinwari <ahmed(dot)shibwari(at)gmail(dot)com>, Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: ECPG Preprocessor throws Syntax Error [Devel Repository]
Date: 2008-12-12 15:37:35
Message-ID: 6192.1229096255@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Zahid Khan <khanzahid235(at)yahoo(dot)com> 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 DECLARE.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Gurjeet Singh 2008-12-14 14:59:43 Re: BUG #4568: sporadic error doing COUNT(*) on empty table
Previous Message Zahid Khan 2008-12-12 15:06:31 Re: ECPG Preprocessor throws Syntax Error [Devel Repository]