pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: CLIFFORD ILKAY <postgres@dinamis.com>
To: pgsql-admin@postgresql.org
Subject: Re: Why am I getting a "cursor already in use" error?
Date: Wed, 19 Nov 2003 02:05:18 -0500
Message-ID: <5.2.0.9.0.20031119020207.029b8260@localhost> (raw)
In-Reply-To: <5.2.0.9.0.20031118223744.0299b0e8@localhost>

At 22:42 18/11/2003 -0500, CLIFFORD ILKAY wrote:
>Hi,
>
>I am trying to create a PL/PGSQL stored proc in PostgreSQL 7.3.2 on 
>Mandrake 9.1. I keep getting a "cursor already in use" error even though I 
>only open the cursor once, fetch using that cursor, and then close the 
>cursor when I am finished with it. Why is this happening? I have pasted 
>the code at <http://www.paste.msunix.org/index.php?view=3012;.

Never mind. I was invoking the stored procedure incorrectly.

Incorrect:

select fx_extract_email_address('1111') from people;

Correct:
select * from fx_extract_email_address('1111');

Regards,

Clifford Ilkay
Dinamis Corporation
3266 Yonge Street, Suite 1419
Toronto, Ontario
Canada M4N 3P6

Tel: 416-410-3326 




view thread (2+ messages)

Message-ID: <5.2.0.9.0.20031119020207.029b8260@localhost>
Permalink:  ../5.2.0.9.0.20031119020207.029b8260@localhost/
Also on:    postgresql.org/message-id/5.2.0.9.0.20031119020207.029b8260@localhost

 · 

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-admin@postgresql.org
  Cc: postgres@dinamis.com
  Subject: Re: Why am I getting a "cursor already in use" error?
  In-Reply-To: <5.2.0.9.0.20031119020207.029b8260@localhost>
  References: <5.2.0.9.0.20031118223744.0299b0e8@localhost> <5.2.0.9.0.20031119020207.029b8260@localhost>

* 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