X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1F28D9FA92E for ; Wed, 7 Jun 2006 16:29:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 63377-08 for ; Wed, 7 Jun 2006 16:29:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id BA1239FA5D2 for ; Wed, 7 Jun 2006 16:29:36 -0300 (ADT) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k57JVC5L028587 for ; Wed, 7 Jun 2006 21:31:12 +0200 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k57JVCSO028586 for pgsql-odbc@postgresql.org; Wed, 7 Jun 2006 21:31:12 +0200 Date: Wed, 7 Jun 2006 21:31:12 +0200 From: Ludek Finstrle To: pgsql-odbc@postgresql.org Subject: CVS and open cursor Message-ID: <20060607193112.GA28566@soptik.pzkagis.cz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88.2/1518/Wed Jun 7 15:10:04 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/24 X-Sequence-Number: 7772 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="psqlodbc_cursor_open.diff" 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; } --cNdxnHkX5QqsyA0e--