pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Bug in  translation of DEALLOCATE PREPARE
8+ messages / 4 participants
[nested] [flat]

* Bug in  translation of DEALLOCATE PREPARE
@ 2004-04-01 08:21  Adriaan Joubert <a.joubert@k2defender.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Adriaan Joubert @ 2004-04-01 08:21 UTC (permalink / raw)
  To: 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



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Bug in  translation of DEALLOCATE PREPARE
@ 2004-04-02 16:56  Adriaan Joubert <a.joubert@k2defender.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Adriaan Joubert @ 2004-04-02 16:56 UTC (permalink / raw)
  To: 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




^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Bug in  translation of DEALLOCATE PREPARE
@ 2004-04-03 05:35  Adriaan Joubert <a.joubert@k2defender.com>
  0 siblings, 2 replies; 8+ messages in thread

From: Adriaan Joubert @ 2004-04-03 05:35 UTC (permalink / raw)
  To: pgsql-interfaces


[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





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Bug in  translation of DEALLOCATE PREPARE
@ 2004-05-20 00:33  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Adriaan Joubert <a.joubert@k2defender.com>
  1 sibling, 1 reply; 8+ messages in thread

From: Bruce Momjian @ 2004-05-20 00:33 UTC (permalink / raw)
  To: Adriaan Joubert <a.joubert@k2defender.com>; +Cc: pgsql-interfaces; meskes@postgresql.org


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, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Bug in  translation of DEALLOCATE PREPARE
@ 2004-05-21 13:51  Michael Meskes <meskes@postgresql.org>
  parent: Adriaan Joubert <a.joubert@k2defender.com>
  1 sibling, 0 replies; 8+ messages in thread

From: Michael Meskes @ 2004-05-21 13:51 UTC (permalink / raw)
  To: Adriaan Joubert <a.joubert@k2defender.com>; +Cc: pgsql-interfaces

On Sat, Apr 03, 2004 at 08:35:45AM +0300, Adriaan Joubert wrote:
>    I believe in recent interface changes changes in ecpg the
> translation of 'DEALLOCATE PREPARE' were missed out. This worker fine
> under 7.3.5.

You're completely correct. I just committed a patch to HEAD and 7.4. 

Thanks for the report.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Bug in  translation of DEALLOCATE PREPARE
@ 2004-05-21 13:52  Michael Meskes <meskes@postgresql.org>
  parent: Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 8+ messages in thread

From: Michael Meskes @ 2004-05-21 13:52 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Adriaan Joubert <a.joubert@k2defender.com>; pgsql-interfaces; meskes@postgresql.org

On Wed, May 19, 2004 at 08:33:22PM -0400, Bruce Momjian wrote:
> 
> Michael, would you comment on this?  Thanks.

I'm sorry for the dealy, but I'm desperately looking for some spare
time to work on ecpg. So I just crawl through my mails very slowly.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Bug in  translation of DEALLOCATE PREPARE
@ 2004-06-01 13:55  Owens, Steve <Steve.Owens@xerox.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Owens, Steve @ 2004-06-01 13:55 UTC (permalink / raw)
  To: pgsql-interfaces

> -----Original Message-----
> From: pgsql-interfaces-owner@postgresql.org
> [mailto:pgsql-interfaces-owner@postgresql.org]On Behalf Of Michael
> Meskes
> Sent: Friday, May 21, 2004 9:51 AM
> To: Adriaan Joubert
> Cc: pgsql-interfaces@postgresql.org
> Subject: Re: [INTERFACES] Bug in translation of DEALLOCATE PREPARE
> 
> 
> On Sat, Apr 03, 2004 at 08:35:45AM +0300, Adriaan Joubert wrote:
> >    I believe in recent interface changes changes in ecpg the
> > translation of 'DEALLOCATE PREPARE' were missed out. This 
> worker fine
> > under 7.3.5.
> 
> You're completely correct. I just committed a patch to HEAD and 7.4. 
> 
> Thanks for the report.

I'm moving some code to 7.4.2, and just got bit by this problem. I've
surfed the mirrors, but can't seem to find anything newer than March 8.
Could someone point me to where the patch is?

TIA.



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Bug in  translation of DEALLOCATE PREPARE
@ 2004-06-02 19:56  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Owens, Steve <Steve.Owens@xerox.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Bruce Momjian @ 2004-06-02 19:56 UTC (permalink / raw)
  To: Owens, Steve <Steve.Owens@xerox.com>; +Cc: pgsql-interfaces

Owens, Steve wrote:
> > -----Original Message-----
> > From: pgsql-interfaces-owner@postgresql.org
> > [mailto:pgsql-interfaces-owner@postgresql.org]On Behalf Of Michael
> > Meskes
> > Sent: Friday, May 21, 2004 9:51 AM
> > To: Adriaan Joubert
> > Cc: pgsql-interfaces@postgresql.org
> > Subject: Re: [INTERFACES] Bug in translation of DEALLOCATE PREPARE
> > 
> > 
> > On Sat, Apr 03, 2004 at 08:35:45AM +0300, Adriaan Joubert wrote:
> > >    I believe in recent interface changes changes in ecpg the
> > > translation of 'DEALLOCATE PREPARE' were missed out. This 
> > worker fine
> > > under 7.3.5.
> > 
> > You're completely correct. I just committed a patch to HEAD and 7.4. 
> > 
> > Thanks for the report.
> 
> I'm moving some code to 7.4.2, and just got bit by this problem. I've
> surfed the mirrors, but can't seem to find anything newer than March 8.
> Could someone point me to where the patch is?

You will have to grab the CVS tag 7.4 stable tags and use that.  We will
release a 7.4.3 that included that patch in the next few weeks.

-- 
  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, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2004-06-02 19:56 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-01 08:21 Bug in  translation of DEALLOCATE PREPARE Adriaan Joubert <a.joubert@k2defender.com>
2004-04-02 16:56 Bug in  translation of DEALLOCATE PREPARE Adriaan Joubert <a.joubert@k2defender.com>
2004-04-03 05:35 Bug in  translation of DEALLOCATE PREPARE Adriaan Joubert <a.joubert@k2defender.com>
2004-05-20 00:33 ` Bruce Momjian <pgman@candle.pha.pa.us>
2004-05-21 13:52   ` Michael Meskes <meskes@postgresql.org>
2004-05-21 13:51 ` Michael Meskes <meskes@postgresql.org>
2004-06-01 13:55 Re: Bug in  translation of DEALLOCATE PREPARE Owens, Steve <Steve.Owens@xerox.com>
2004-06-02 19:56 ` Bruce Momjian <pgman@candle.pha.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox