From: Nick Gorham <nick@easysoft.com>
To: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: Alain Picard <Alain.Picard@memetrics.com>
Cc: Peter Harvey <pharvey@codebydesign.com>
Cc: pgsql-odbc@postgresql.org
Cc: claudio.natoli@memetrics.com
Subject: Re: unixODBC, PostgreSQL 7.3 + ODBC V3 drivers?
Date: Wed, 05 Feb 2003 09:49:14 +0000
Message-ID: <3E40DE1A.4030603@easysoft.com> (raw)
In-Reply-To: <3E40697F.646ACF10@tpf.co.jp>
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>
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
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: nick@easysoft.com, Inoue@tpf.co.jp, Alain.Picard@memetrics.com, pharvey@codebydesign.com, claudio.natoli@memetrics.com
Subject: Re: unixODBC, PostgreSQL 7.3 + ODBC V3 drivers?
In-Reply-To: <3E40DE1A.4030603@easysoft.com>
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> <3E40DE1A.4030603@easysoft.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