Skip to Content.
Sympa Menu

freetds - Re: PHP's mssql_fetch_row inserting '\0' on strings ?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: PHP's mssql_fetch_row inserting '\0' on strings ?
  • Date: Thu, 20 Jun 2002 17:01:40 -0400


> From: Brian Bruns [mailto:camber AT ais.org]
> Sent: June 20, 2002 4:19 PM

> Try replacing
>
> curcol->cur_row_size = colsize;
>
> in src/tds/token.c(tds_process_row) with
>
> if (curcol->column_unicodedata) {
> curcol->cur_row_size = strlen(dest);
> } else {
> curcol->cur_row_size = colsize;
> }

Brian, that works. I can update cvs later.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page