Skip to Content.
Sympa Menu

freetds - Re: [PHP4BETA] off by one error strikes back

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: richard AT iguana.co.nz
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Cc: php4beta AT lists.php.net
  • Subject: Re: [PHP4BETA] off by one error strikes back
  • Date: Thu, 9 Dec 1999 17:15:31 +1300 (NZDT)


> Except this time in the opposite direction. It appears we're now getting a
> NULL on the end of string data pulled from a sybase table.
>
> Platform: debian slink with latest (as of Dec 9, 4pm NZDT) cvs of both
> freetds and php4.
>

Well, I've found something that solves the problem, but I doubt its a real
solution :)

ct.c line 391 in freetds latest cvs:

len = tds_convert(srctype,src, curcol->column_size,
desttype,curcol->varaddr,curcol->column_bindlen);

Changed to:

len = tds_convert(srctype,src, curcol->column_size,
desttype,curcol->varaddr,curcol->column_bindlen)-1;

Resulted in me getting the right data back. Now from what I can tell of
this, blobs may still be broken (I don't know what the standard is), and I
may well have changed the wrong thing.

Richard.





Archive powered by MHonArc 2.6.24.

Top of Page