pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shachar Shemesh <shachar@lingnu.com>
To: Secrétariat <ets@rolland-fr.com>
Cc: ODBC PostgreSQL <pgsql-odbc@postgresql.org>
Subject: Re: OIDS column required with ODBC ?
Date: Mon, 27 Sep 2004 10:23:26 +0200
Message-ID: <4157CDFE.3030807@lingnu.com> (raw)
In-Reply-To: <002401c4a00a$9b610380$0a00a8c0@lrp43008>
References: <002401c4a00a$9b610380$0a00a8c0@lrp43008>

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/




view thread (9+ messages)

Message-ID: <4157CDFE.3030807@lingnu.com>
Permalink:  ../4157CDFE.3030807@lingnu.com/
Also on:    postgresql.org/message-id/4157CDFE.3030807@lingnu.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: shachar@lingnu.com, ets@rolland-fr.com
  Subject: Re: OIDS column required with ODBC ?
  In-Reply-To: <4157CDFE.3030807@lingnu.com>
  References: <002401c4a00a$9b610380$0a00a8c0@lrp43008> <4157CDFE.3030807@lingnu.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox