From: Ludek Finstrle <luf@pzkagis.cz>
To: pgsql-odbc@postgresql.org
Subject: CVS and open cursor
Date: Wed, 7 Jun 2006 21:31:12 +0200
Message-ID: <20060607193112.GA28566@soptik.pzkagis.cz> (raw)
Hello,
Hiroshi have you commited all changes? I have still
"The cursor is open." problem with CVS. So I try fix it myself.
Please could you commit the changes more frequently or send
the patches to the list so I can cooperate?
My patch is based on PGAPI_FreeStmt(hstmt, SQL_CLOSE) is called
from PGAPI_MoreResults when this returns SQL_NO_DATA.
Patch (againist CVS HEAD) attached.
Regards,
Luf
Attachments:psqlodbc_cursor_open.diff (text/plain, 383B) download
diff -c psqlodbc.orig\results.c psqlodbc\results.c
*** psqlodbc.orig\results.c Mon May 29 20:26:46 2006
--- psqlodbc\results.c Wed Jun 07 21:00:44 2006
***************
*** 1838,1844 ****
--- 1838,1847 ----
stmt->currTuple = -1;
}
else
+ {+ PGAPI_FreeStmt(hstmt, SQL_CLOSE);
ret = SQL_NO_DATA_FOUND;
+ }
mylog("%s: returning %d\n", func, ret);
return ret;
}
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-odbc@postgresql.org
Cc: luf@pzkagis.cz
Subject: Re: CVS and open cursor
In-Reply-To: <20060607193112.GA28566@soptik.pzkagis.cz>
References: <20060607193112.GA28566@soptik.pzkagis.cz>
* 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