Skip to Content.
Sympa Menu

freetds - RE: DBLIB Unit Tests failing again

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: RE: DBLIB Unit Tests failing again
  • Date: Mon, 16 Sep 2002 18:10:14 +0200


>
> Dave,
>
> I can see the problem now. The nulls are actually attached to
> the end of
> the varchar(255) field . I have tracked down the root cause
> of this now.
>
> All,
>
> The problem lies in some changes done to dbconvert in version 1.49 of
> dblib.c
> This code has (as we know) been batted back and forth a
> number of times
> with a number of valuable improvements being made along the way. This
> makes me reluctant to just blindly restore my old version of
> the offending
> lines...
> That said, I will attempt to think it through and build a
> patch that sorts
> it out.
>
> I'm pretty sure (thinking it through) that it's only the bcp
> functionality
> that should have a problem with this, or am I right in
> recollecting other
> posts complaining about unwanted nulls at the end of data ?
>
> Bill
>
I made a bit of change of all convert functions.
Mainly I tested all proprietary api to see results (data and length
returned)
Now returned length is ok, but perhaps is not what you expect...
dbconvert do not count terminator even if it terminate the string

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================




Archive powered by MHonArc 2.6.24.

Top of Page