pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Maurizio <maurizio@dreamtech-it.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: USE OF CURSORS IN ECPG
Date: Wed, 8 Nov 2000 12:39:42 +0100
Message-ID: <20001108123942.A7369@feivel.fam-meskes.de> (raw)
In-Reply-To: <001101c048db$38a74d60$7394fea9@maurizio>
References: <001101c048db$38a74d60$7394fea9@maurizio>

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@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!



view thread (4+ messages)  latest in thread

Message-ID: <20001108123942.A7369@feivel.fam-meskes.de>
Permalink:  ../20001108123942.A7369@feivel.fam-meskes.de/
Also on:    postgresql.org/message-id/20001108123942.A7369@feivel.fam-meskes.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@postgresql.org, maurizio@dreamtech-it.com
  Subject: Re: USE OF CURSORS IN ECPG
  In-Reply-To: <20001108123942.A7369@feivel.fam-meskes.de>
  References: <001101c048db$38a74d60$7394fea9@maurizio> <20001108123942.A7369@feivel.fam-meskes.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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