Skip site navigation (1) Skip section navigation (2)

Bug in translation of DEALLOCATE PREPARE

From: Adriaan Joubert <a(dot)joubert(at)k2defender(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Bug in translation of DEALLOCATE PREPARE
Date: 2004-04-01 08:21:41
Message-ID: 406BD115.90908@k2defender.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
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

pgsql-interfaces by date

Next:From: Edmund BaconDate: 2004-04-01 19:22:44
Subject: ECPG and COPY TO STDOUT
Previous:From: yihueyDate: 2004-03-30 17:28:17
Subject: Compiler 7.4 with--java Error on Redhad AS 2.4.21

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group