X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 3C7F79DCA23 for ; Tue, 24 Jan 2006 09:37:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00675-07 for ; Tue, 24 Jan 2006 09:37:20 -0400 (AST) 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 65E639DCA76 for ; Tue, 24 Jan 2006 09:37:12 -0400 (AST) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k0ODbC13029851; Tue, 24 Jan 2006 14:37:12 +0100 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k0ODbCx8029850; Tue, 24 Jan 2006 14:37:12 +0100 Date: Tue, 24 Jan 2006 14:37:12 +0100 From: Ludek Finstrle To: Lothar Behrens Cc: pgsql-odbc@postgresql.org Subject: Re: Strange problem ? Message-ID: <20060124133712.GC29619@soptik.pzkagis.cz> References: <1138056433.236326.34590@o13g2000cwo.googlegroups.com> <20060124121103.GA29043@soptik.pzkagis.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.084 required=5 tests=[AWL=0.084] X-Spam-Score: 0.084 X-Spam-Level: X-Archive-Number: 200601/227 X-Sequence-Number: 7042 > My wrappers code (AFTER calling SQLExecDirect(...)): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ This could be the problem. You open cursor and then you want change the type ... I'm not expert in this question. I don't use ODBC frequently. > // Why this construct ?? > SQLINTEGER csrType = SQL_CURSOR_KEYSET_DRIVEN; > > SQLSetStmtAttr(hstmt, SQL_ATTR_CURSOR_TYPE, (SQLPOINTER) > csrType, 0); > > Dave's sample works with KEYSET_DRIVEN cursors. Keyset driven cursor isn't full dynamic cursor (ODBC spec). Keyset driven cursor doesn't detect added or deleted rows from other transactions. I'm sorry I can't help you more Luf