[unixODBC-support] unixODBC and freeTDS column-wise parameter binding
Alexander Zlotnikov (azlotnlk)
azlotnlk at cisco.com
Mon Jun 13 17:48:39 BST 2005
Thank you for quick response.
It does seem to point to the driver rather then DM. The reason I have
suspected DM is because two different drivers ( freeTDS and DataDirect)
behave the same way with unixODBC. My code works as expected if I use
DataDirect driver manager and DataDirect ms-sql driver. I could not get
freeTDS to work with DataDirect DM.
Martin, I use a separate array for each parameter and specify
SQL_ATTR_PARAM_BIND_TYPE as SQL_PARAMETER_BIND_BY_COLUMN
Date: Sat, 11 Jun 2005 00:42:18 +0100
From: Nick Gorham <nick.gorham at easysoft.com>
Subject: Re: [unixODBC-support] unixODBC and freeTDS column-wise
To: Support for the unixODBC project <unixodbc-support at easysoft.com>
Message-ID: <42AA255A.7070006 at easysoft.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Martin J. Evans wrote:
> I can confirm that array bound parameters work fine in unixODBC with a
> number of drivers I have. You say "column-wide" and then "parameters"
> and I can also confirm array bound columns bound to a result-set work
> fine in unixODBC with various drivers I have here. I'd suggest you
> would be better directing this to the FreeTDS list.
> Alex Zlotnikov wrote:
>> Column-wide parameter binding does not seems to work with
>> unixODBC/freeTDS. Only first set of parameters values are being
>> passed to ms-sql server. The same code works as expected with
>> DataDirect driver and driver manager. But if unixODBC used with
>> DataDirect driver, I see the same behavior where only first values
>> Thank you,
In actual fact the DM has very little to do with this, the pointer is
passed from the app to the driver without change by the driver manager.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the unixODBC-support