freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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.
-
off by one error strikes back,
richard, 12/08/1999
- Re: [PHP4BETA] off by one error strikes back, richard, 12/08/1999
- <Possible follow-up(s)>
-
Re: off by one error strikes back,
Brian Bruns, 12/09/1999
- Re: [PHP4BETA] Re: off by one error strikes back, richard, 12/09/1999
Archive powered by MHonArc 2.6.24.