Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id A1D099ED582 for ; Wed, 7 Dec 2011 19:54:28 -0400 (AST) Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1RYRJj-0007Ca-Em for pgsql-odbc@postgresql.org; Wed, 07 Dec 2011 23:54:29 +0000 Received: (qmail 14754 invoked by uid 512); 7 Dec 2011 23:54:12 -0000 Received: from unknown (HELO ?100.0.32.147?) (100.0.32.147) by sd2.tpf-fw-c.co.jp with SMTP; 7 Dec 2011 23:54:12 -0000 Message-ID: <4EDFFC8F.4000102@tpf.co.jp> Date: Thu, 08 Dec 2011 08:53:51 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: "JUNG, Christian" CC: pgsql-odbc@postgresql.org Subject: Re: Updateable Cursors with current PostgreSQL versions References: <24BB5F92CE3E62419C5A6D5B1A1E0F46065E9254@nts58.saarstahl.de> In-Reply-To: <24BB5F92CE3E62419C5A6D5B1A1E0F46065E9254@nts58.saarstahl.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/2 X-Sequence-Number: 10752 Hi, (2011/12/08 2:00), JUNG, Christian wrote: > Hello, > > the ODBC-driver has an option to emulate updateable cursors (default "on"). *Updatable Cursors* in psqlodbc means *updatable result set*. You can call SQLSetPos(.., SQL_UPDATE/SQL_DELETE) or SQLBulkOperations() but unfortunately psqlodbc driver doesn't support positioned update using CURRENT OF CURSOR. regards, Hiroshi Inoue > AFAIK are updateable cursors supported since PostgreSQL version 8.3. Does the driver have to emulate updateable cursors with current PostgreSQL-versions or should this option be disabled for newer PostgreSQL releases? > > I tried to figur it out myself, but the code is very tricky on the whole configuration stuff... :-S > > regards > Chris >