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 6A521D1C4D0 for ; Thu, 31 Jul 2003 06:55:08 +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 28097-09 for ; Thu, 31 Jul 2003 03:54:01 -0300 (ADT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 75C97D1C4CB for ; Thu, 31 Jul 2003 03:55:02 -0300 (ADT) Received: (qmail 30165 invoked by uid 65534); 31 Jul 2003 06:55:02 -0000 Received: from pD9E7BB92.dip.t-dialin.net (EHLO uag02) (217.231.187.146) by mail.gmx.net (mp023) with SMTP; 31 Jul 2003 08:55:02 +0200 From: "Amanjit Gill" To: Subject: Re: ODBC + Dynamic cursors Date: Thu, 31 Jul 2003 08:55:02 +0200 Message-ID: <000c01c35730$aadd9180$0400a8c0@charite.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <3F285C2D.373B1BED@tpf.co.jp> Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/57 X-Sequence-Number: 3118 Dear Mr. Inoue, - Keyset driven cursors did the trick - Thank you for pointing out to set the attribute at the statement level - SQLSetPos() functionality basically does what I want to. Regards, Amanjit Gill Software Developer Medical and Bioinformatics UFK (Gynecology and Obstetrics) University Clinic Charite=20 Berlin -----Urspr=FCngliche Nachricht----- Von: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] Im Auftrag von Hiroshi Inoue Gesendet: Donnerstag, 31. Juli 2003 02:01 An: Amanjit Gill Cc: pgsql-odbc@postgresql.org Betreff: Re: [ODBC] ODBC + Dynamic cursors Amanjit Gill wrote: >=20 > Hi, I have written a C++ ODBC wrapper that right now runs on=20 > Oracle,Access,SQL Server, Sybase. I am right now investigating=20 > PostgreSQL which we want to use instead of SQL Server. >=20 > PostgreSQL Version: 7.33 (Cygwin/Windows XP) using ipc-daemon > ODBC Version: 7.03.01.10 > OS: Windows XP Pro, SP1 >=20 > Synopsis: > I basically open a connection to a db, create a statement,use a=20 > dynamic cursor via SQLSetConnectAttr (SQL_ATTR_CURSOR_TYPE,=20 > 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] =20 > Another question: are positionable updates and deletes (which means > SQLSetPos) possible with > PostgreSQL at present (as mentioned in=20 > http://msdn.microsoft.com/library/default.asp?url=3D/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/ ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 =20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 =20