X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3BD56475A1F for ; Wed, 5 Feb 2003 04:49:23 -0500 (EST) Received: from gangrad.easysoft.com (gangrad.easysoft.com [194.131.236.119]) by postgresql.org (Postfix) with ESMTP id 02124475A1E for ; Wed, 5 Feb 2003 04:49:22 -0500 (EST) Received: from mail pickup service by gangrad.easysoft.com with Microsoft SMTPSVC; Wed, 5 Feb 2003 09:49:17 +0000 Received: from easysoft.com ([194.131.236.121] RDNS failed) by gangrad.easysoft.com with Microsoft SMTPSVC(5.0.2195.4453); Wed, 5 Feb 2003 09:49:14 +0000 Message-ID: <3E40DE1A.4030603@easysoft.com> Date: Wed, 05 Feb 2003 09:49:14 +0000 From: Nick Gorham User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021126 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Hiroshi Inoue Cc: Alain Picard , Peter Harvey , pgsql-odbc@postgresql.org, claudio.natoli@memetrics.com Subject: Re: unixODBC, PostgreSQL 7.3 + ODBC V3 drivers? References: <15935.11848.278897.343335@outback.memetrics.local> <3E3F8C0B.C6E195DA@tpf.co.jp> <15936.16797.475953.234542@outback.memetrics.local> <3E405CB2.6163F291@tpf.co.jp> <15936.26434.443355.676365@outback.memetrics.local> <3E40697F.646ACF10@tpf.co.jp> In-Reply-To: <3E40697F.646ACF10@tpf.co.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Feb 2003 09:49:14.0592 (UTC) FILETIME=[D79B1E00:01C2CCFB] X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/32 X-Sequence-Number: 2650 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 ? -- Nick Gorham Easysoft Limited http://www.easysoft.com