freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: <camber AT localhost.localdomain>
- To: TDS Development Group <freetds AT franklin.oit.unc.edu>
- Subject: Re: Value returned by tds_convert_*
- Date: Tue, 30 May 2000 22:31:46 -0400 (EDT)
If I remember correctly, there is a difference in the returned value from
some of the ctlib calls depending on the format used. Some formats
include null in the count and some do not. More specifically DBD::Sybase
uses one and PHP uses the other :-)
So, take a real good look at _ct_bind_data() to make sure you get the
correct behaviour.
Brian
On Tue, 30 May 2000 tetherow AT nol.org wrote:
> Going through the convert.c file working on datetime fixes and expansion
> for some of the variable types I have run across contradiction in the
> code. When converting various types to SYBCHAR (strings) the size
> returned by the convert function sometimes includes the terminating null
> while at other times it does not. I assume that the null should be
> counted as it would make more sense to call
> tds_convert_text(srctype, src, desttype, &dest, sizeof(dest))
> instead of
> tds_convert_text(srctype, src, desttype, &dest, sizeof(dest)-1)
>
> If someone has a definate answer for this I'll go through and clean up
> the convert file so it is consistant.
>
> ------------------------------------------------------------------------
> Sam Tetherow tetherow AT nol.org
> Director of Development
> Nebrask@ Online http://www.nol.org/
>
>
> ---
> You are currently subscribed to freetds as: camber AT ais.org
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>
-
Value returned by tds_convert_*,
tetherow, 05/30/2000
- <Possible follow-up(s)>
- Re: Value returned by tds_convert_*, camber, 05/30/2000
Archive powered by MHonArc 2.6.24.