ECPG: AUTOCOMMIT and CURSORs

From: A J <s5aly(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: ECPG: AUTOCOMMIT and CURSORs
Date: 2010-10-04 19:07:05
Message-ID: 812668.19871.qm@web120007.mail.ne1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I am seeing some funny behavior on using both:
EXEC SQL SET AUTOCOMMIT TO ON;
and
CURSORS (EXEC SQL DECLARE ............., EXEC SQL FETCH NEXT FROM .............)

On autocommit on (either through above method or precompiling with -t option),
the cursor does not return any rows. On disabling autocommit, I get the required
number of rows from the cursor.

Any idea what could be going on ?

Thanks!
AJ

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2010-10-04 21:20:14 Re: ECPG: AUTOCOMMIT and CURSORs
Previous Message Tom Lane 2010-10-04 18:47:34 Re: Default session timeout in PG?