pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Finn Lassen <dcio@AxiomInt.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Need help with Visual Basic 6 and PostgreSQL
Date: Fri, 23 Nov 2007 16:27:03 -0800 (PST)
Message-ID: <984765.79625.qm@web31801.mail.mud.yahoo.com> (raw)
In-Reply-To: <47476539.1080602@AxiomInt.com>

--- On Fri, 11/23/07, Finn Lassen <dcio@AxiomInt.com> wrote:
> "ERROR: Column "oid" does not exist;"
> I get when executing the " rsOut.Open ..."
> statement below.

Here are some OID setting from ODBC driver manual:
...
OID Options:
  
Show Column: Includes the OID in SQLColumns. This is good for using as a unique identifier to update records if no good key exists OR if the key has many parts, which blows up the backend.
  
Fake Index: This option fakes a unique index on OID. This is useful when there is not a real unique index on OID and for apps which can't ask what the unique identifier should be (i.e, Access 2.0).
...

Perhaps the odbc driver defaults to showing ODBC column.  In postgresql versions < 8.0 it was the default for every table to be given an OID (basically every row in any and all tables had a unique number that identified it). However, as of postgresql 8.0, OID columns are no longer added to all table by default.  This could be causing the problem since the ODBC driver may be trying to select the OID column from your table even though it doesn't actually exist.

I will look for the ODBC documention that describes that settings that you can pass to the ODBC driver in the connection string.

Regards,
Richard Broersma Jr.



view thread (16+ messages)  latest in thread

Message-ID: <984765.79625.qm@web31801.mail.mud.yahoo.com>
Permalink:  ../984765.79625.qm@web31801.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/984765.79625.qm@web31801.mail.mud.yahoo.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: rabroersma@yahoo.com, dcio@AxiomInt.com
  Subject: Re: Need help with Visual Basic 6 and PostgreSQL
  In-Reply-To: <984765.79625.qm@web31801.mail.mud.yahoo.com>
  References: <47476539.1080602@AxiomInt.com> <984765.79625.qm@web31801.mail.mud.yahoo.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