From: Harry Broomhall <harry.broomhall@uk.easynet.net>
To: pgsql-odbc@postgresql.org
Subject: Re: Problems with PGSQL ODBC drivers
Date: Fri, 10 Jan 2003 11:47:33 +0000 (GMT)
Message-ID: <200301101147.LAA78391@haeb.noc.uk.easynet.net> (raw)
In-Reply-To: <E382B5D8EDE1D6118DBE0008C759BCD6116B5E@WCPEXCHANGE>
Henshall, Stuart - Design & Print writes:
> So that MS Access can auto work out which field to use as a key I first of
> all create a view as a table with primary key and then create a select rule.
Thinking about this further, it occurs to me that if the driver
routines for SQLSpecialColumns returned the actual Primary Key for a table
(if it existed) rather than OID then Access may have the required hint?
The sort of scheme I had in mind goes something like this:
if (view)
return SQL_NO_DATA
else if (table) {
if (primary key esists)
return all elements of PK.
else if (oid exists)
return oid
else
return SQL_NO_DATA
}
Or am I way off-beam with this idea?
Regards,
Harry.
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: harry.broomhall@uk.easynet.net
Subject: Re: Problems with PGSQL ODBC drivers
In-Reply-To: <200301101147.LAA78391@haeb.noc.uk.easynet.net>
References: <E382B5D8EDE1D6118DBE0008C759BCD6116B5E@WCPEXCHANGE> <200301101147.LAA78391@haeb.noc.uk.easynet.net>
* 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