X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F2F56329E71 for ; Mon, 27 Sep 2004 09:23:36 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64782-03 for ; Mon, 27 Sep 2004 08:23:31 +0000 (GMT) Received: from latenight.fiasco.org.il (latenight.fiasco.org.il [192.117.122.39]) by svr1.postgresql.org (Postfix) with SMTP id 94F8A329E70 for ; Mon, 27 Sep 2004 09:23:29 +0100 (BST) Received: (qmail 11356 invoked from network); 27 Sep 2004 08:23:29 -0000 Received: from unknown (HELO ?172.16.19.91?) (192.117.102.130) by latenight.fiasco.org.il with SMTP; 27 Sep 2004 08:23:27 -0000 Message-ID: <4157CDFE.3030807@lingnu.com> Date: Mon, 27 Sep 2004 10:23:26 +0200 From: Shachar Shemesh User-Agent: Mozilla Thunderbird 0.8 (X11/20040918) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Secr=E9tariat?= Cc: ODBC PostgreSQL Subject: Re: OIDS column required with ODBC ? References: <002401c4a00a$9b610380$0a00a8c0@lrp43008> In-Reply-To: <002401c4a00a$9b610380$0a00a8c0@lrp43008> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/6 X-Sequence-Number: 4481 Secrétariat wrote: > I use the Open Method from ADO in MS Visual-Basic 6.0 ... > Is there anybody who can explain to me why I can't open tables without > OIDS ? > > Thanks. > > Luc The ODBC driver is emulating updateable cursors by adding the xid and oid to each query. It can then identify each row in the result, and update it if requested. When you open a table that doesn't have oid, this open fails. To work around this problem, you need to open your rows in a non-updateable mode, which will make ODBC not add the requirement for oid in the table, and solve the problem. Shachar -- Shachar Shemesh Lingnu Open Source Consulting ltd. http://www.lingnu.com/