Re: USE OF CURSORS IN ECPG

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Maurizio <maurizio(at)dreamtech-it(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: USE OF CURSORS IN ECPG
Date: 2000-11-08 11:39:42
Message-ID: 20001108123942.A7369@feivel.fam-meskes.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

On Tue, Nov 07, 2000 at 05:52:00PM +0100, Maurizio wrote:
> I'm just starded using ecpg and I have some problem with cursors.
> ...
> exec sql prepare stmtunimpianto from :query;
> .
> .
> exec sql commit;
> ...
> If I rem the commit all works fine but if I execute the commit the cursor was deleted and I receive some errors.
>
> At open cursor : sqlca.sqlcode = -230 Invalid statement namei in line ......
> at fetch : NOTICE : PerformPortalFetch: portal "cur_unimpianto" not found

No surprise here as ending a transaction forces a deallocation of all
prepared statements. AFAIK that's what the standard says.

Michael

--
Michael Meskes
Michael(at)Fam-Meskes(dot)De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Philip Warner 2000-11-08 13:33:21 Re: Unhappy thoughts about pg_dump and objects inherited from template1
Previous Message Zeugswetter Andreas SB 2000-11-08 09:49:14 AW: AW: AW: Issue NOTICE for attempt to raise lock leve l?

Browse pgsql-interfaces by date

  From Date Subject
Next Message Dadure Arnaud 2000-11-08 16:07:45 PostgreSQL + JDBC
Previous Message Anders Bengtsson 2000-11-08 08:55:51 Re: Status of full blob support in JDBC?