Re: Bug in translation of DEALLOCATE PREPARE - Mailing list pgsql-interfaces

From Bruce Momjian
Subject Re: Bug in translation of DEALLOCATE PREPARE
Date
Msg-id 200405200033.i4K0XMT28270@candle.pha.pa.us
Whole thread Raw
In response to Bug in translation of DEALLOCATE PREPARE  (Adriaan Joubert <a.joubert@k2defender.com>)
Responses Re: Bug in translation of DEALLOCATE PREPARE  (Michael Meskes <meskes@postgresql.org>)
List pgsql-interfaces
Michael, would you comment on this?  Thanks.

---------------------------------------------------------------------------

Adriaan Joubert wrote:
> 
> [Apologies if you see multiple of these - this is my 4th attempt to post 
> in 3 days.]
> 
> Hi,
> 
>     I believe in recent interface changes changes in ecpg the
> translation of 'DEALLOCATE PREPARE' were missed out. This worker fine
> under 7.3.5.
> 
> Currently
> 
> EXEC SQL DEALLOCATE PREPARE foobar;
> 
> is translated to
> 
> { ECPGdeallocate(__LINE__, ""foobar"");}
> 
> The double quotes are obviously wrong, but when I remove them the
> compiler says that it now expects 3 arguments to ECPGdeallocate instead
> of 2. I assume this is a trivial fix to ecpg, but I don't have the time
> right now to try to understand what ecpg does internally. I'd really
> appreciate it if somebody could tell me how/where ecpg needs to be fixed.
> 
> Cheers,
> 
> Adriaan
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faqs/FAQ.html
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-interfaces by date:

Previous
From: "Stergios Zissakis"
Date:
Subject: ECPG scoping
Next
From: Elinor Medezinski
Date:
Subject: Error code handling in perl