X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2618547611E for ; Wed, 5 Feb 2003 08:53:22 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id AA787475B8F for ; Wed, 5 Feb 2003 07:26:35 -0500 (EST) Received: (qmail 11247 invoked from network); 5 Feb 2003 12:26:27 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 5 Feb 2003 12:26:27 -0000 Received: from unknown (HELO PbgX) (219.61.40.14) by sd.tpf.co.jp with SMTP; 5 Feb 2003 12:26:27 -0000 From: "Hiroshi Inoue" To: "'Nick Gorham'" Cc: "'Alain Picard'" , "'Peter Harvey'" , , Subject: Re: unixODBC, PostgreSQL 7.3 + ODBC V3 drivers? Date: Wed, 5 Feb 2003 21:26:27 +0900 Message-ID: <003101c2cd11$ce99cfc0$0e283ddb@PbgX> 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, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <3E40DE1A.4030603@easysoft.com> Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/25 X-Sequence-Number: 2643 > -----Original Message----- > From: Nick Gorham [mailto:nick@easysoft.com] > > Hiroshi Inoue wrote: > > Alain Picard wrote: > > > >>>>>>>Hiroshi Inoue writes: > >> > >>Hiroshi> I checked unixODBC sources a little. ISTM unixODBC checks > >>Hiroshi> the existence of the function SQLColAttributes and if it > >>Hiroshi> exists, it calls SQLColAttributes( not SQLColAttribute) > >>Hiroshi> passing through the Field Identifier parameter. > >>Hiroshi> Is it right ? > >> > >>I _think_ that's right, but I'll leave it to Nick or Peter > to confirm. > > Ok, this is my take. > > SQLColAttributes is a ODBC 2 call, its depreciated in ODBC 3, so if a > app calls SQLColAttributes, the DM will call SQLColAttributes in the > driver (if it exists), otherwise it will call SQLColAttribute. > > If the app calls SQLColAttribute and the driver supports > SQLColAttribute > then its passed into the driver. If the driver only has > SQLColAttributes > then the DM will map some ODBC 3 values to their ODBC 2 > version (if they > differ). > > Its made a bit stranger in that the value that SQLGetFunctions returns > is the SAME for the two calls, so the only way the DM can > tell which the > driver has if by the functions exported by the shared lib. > > Does that help ? Thanks. I already committed a change to remove ODBC2.x functions for the ODBC 3 driver. According to Alain, it solved the SQLColAttribte(s) problem at least. However, there exists a BIGINT handling problem. What I provided is bigint handling under Windows only. Unfortunately I'm not good at portability issue under *nix. regards, Hiroshi Inoue