Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 838AA475DDC for ; Fri, 10 Jan 2003 10:21:51 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 4919E475D3F for ; Fri, 10 Jan 2003 10:21:50 -0500 (EST) Received: (qmail 27121 invoked from network); 10 Jan 2003 15:21:52 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 10 Jan 2003 15:21:52 -0000 Received: from unknown (HELO mcadnote1) (219.61.40.45) by sd.tpf.co.jp with SMTP; 10 Jan 2003 15:21:52 -0000 From: "Hiroshi Inoue" To: "Harry Broomhall" Cc: Subject: Re: Problems with PGSQL ODBC drivers Date: Sat, 11 Jan 2003 00:23:57 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200301101147.LAA78391@haeb.noc.uk.easynet.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/49 X-Sequence-Number: 2548 Please try the snapshot dll at http://w2422.nsk.ne.jp/~inoue/ . regards, Hiroshi Inoue > -----Original Message----- > From: pgsql-odbc-owner@postgresql.org > [mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Harry Broomhall > Sent: Friday, January 10, 2003 8:48 PM > To: pgsql-odbc@postgresql.org > Subject: Re: [ODBC] Problems with PGSQL ODBC drivers > > > 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. > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html >