pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Why am I getting a "cursor already in use" error?
2+ messages / 1 participants
[nested] [flat]

* Why am I getting a "cursor already in use" error?
@ 2003-11-19 03:42  CLIFFORD ILKAY <postgres@dinamis.com>
  0 siblings, 1 reply; 2+ messages in thread

From: CLIFFORD ILKAY @ 2003-11-19 03:42 UTC (permalink / raw)
  To: pgsql-admin

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;.

Regards,

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

Tel: 416-410-3326  




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

* Re: Why am I getting a "cursor already in use" error?
@ 2003-11-19 07:05  CLIFFORD ILKAY <postgres@dinamis.com>
  parent: CLIFFORD ILKAY <postgres@dinamis.com>
  0 siblings, 0 replies; 2+ messages in thread

From: CLIFFORD ILKAY @ 2003-11-19 07:05 UTC (permalink / raw)
  To: pgsql-admin

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 




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


end of thread, other threads:[~2003-11-19 07:05 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19 03:42 Why am I getting a "cursor already in use" error? CLIFFORD ILKAY <postgres@dinamis.com>
2003-11-19 07:05 ` CLIFFORD ILKAY <postgres@dinamis.com>

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