X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id DB8F6D1C4EC for ; Thu, 31 Jul 2003 00:00:37 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 98317-06 for ; Wed, 30 Jul 2003 20:59:37 -0300 (ADT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 7DA1ED1C4D6 for ; Wed, 30 Jul 2003 21:00:34 -0300 (ADT) Received: (qmail 20523 invoked from network); 31 Jul 2003 00:00:37 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 31 Jul 2003 00:00:37 -0000 Received: from tpf.co.jp ([126.0.1.68]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id JAA10208; Thu, 31 Jul 2003 09:00:29 +0900 (JST) Message-ID: <3F285C2D.373B1BED@tpf.co.jp> Date: Thu, 31 Jul 2003 09:00:45 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Amanjit Gill Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC + Dynamic cursors References: <001101c356d6$066f66a0$0400a8c0@charite.de> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/56 X-Sequence-Number: 3117 Amanjit Gill wrote: > > Hi, I have written a C++ ODBC wrapper that right now runs on > Oracle,Access,SQL Server, Sybase. > I am right now investigating PostgreSQL which we want to use instead of > SQL Server. > > PostgreSQL Version: 7.33 (Cygwin/Windows XP) using ipc-daemon > ODBC Version: 7.03.01.10 > OS: Windows XP Pro, SP1 > > Synopsis: > I basically open a connection to a db, create a statement,use a dynamic > cursor > via SQLSetConnectAttr (SQL_ATTR_CURSOR_TYPE, SQL_CURSOR_DYNAMIC), Please set the SQL_ATTR_CURSOR_TYPE attribute for statement handles not for connection handles. Also note that psqlodbc driver doesn't support dynamic cursors. Please use keyset-driven or static cursors instead. [snip] > Another question: are positionable updates and deletes (which means > SQLSetPos) possible with > PostgreSQL at present (as mentioned in > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/ht > m/odch12pr_2.asp) ? No. What the driver supports is to update/delete/insert/.. a row (rows) in a rowset using SQLSetPos(.., .., SQL_UPDATE/DELETE/ADD, .. Positioned update/delete means updat/deleting a row in a rowset by executing a query such as UPDATE/DELETE ... WHERE CURRENT OF .... Please note that the examples in the page you specified are updat/deleting a row using SQLExecute. regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/