Re: ECPG - bug in EXEC SQL WHENEVER NOT FOUND?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christian Rank <christian(dot)rank(at)rz(dot)uni-passau(dot)de>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: ECPG - bug in EXEC SQL WHENEVER NOT FOUND?
Date: 2004-03-08 17:56:53
Message-ID: 200403081756.i28HurJ25780@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Christian Rank wrote:
> > postgres(at)feivel:/home/postgres/pgsql/src/interfaces/ecpg$ ./a
> > [21964]: ECPGdebug: set to 1
> > [21964]: ECPGconnect: opening database mm on <DEFAULT> port <DEFAULT>
> > [21964]: ECPGexecute line 16: QUERY: select n from t on connection mm
> > [21964]: ECPGexecute line 16: Correctly got 0 tuples with 1 fields
> > [21964]: raising sqlcode 100 in line 16, 'No data found in line 16.'.
> > no data found
> > [21964]: ecpg_finish: Connection mm closed.
> >
> > Looks okay, doesn't it?
>
> Sorry that I didn't mention: I have PostgreSQL 7.4.1 on Slackware 9.1.
>
> Today I tried with a 7.5devel snapshot of 16.02.2004. In this version,
> everything works as it should, so I assume that this bug is fixed in the
> meantime.

And 7.4.2 (unreleased) notes state the fix:

* Added ecpg WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kris Jurka 2004-03-08 18:08:15 Re: Character Encoding Confusion
Previous Message Markus Wollny 2004-03-08 17:09:57 Character Encoding Confusion