freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: James Ponder <james AT squish.net>
- To: TDS Development Group <freetds AT franklin.oit.unc.edu>
- Subject: Re: trailing null on strings
- Date: Thu, 19 Oct 2000 16:02:17 +0100
On Thu, Oct 19, 2000 at 08:02:49AM -0400, Brian Bruns wrote:
> Here is the problem. The bindfmt is 66! which is totally not valid, it
I made ct_bind print out the given format, and it was 66. So I added
a printf before every ct_bind in DBD::Sybase and re-installed. It printed
0. It got the string 'hello' without a null terminator. I cried ;(
Sigh sigh sigh. I think the scenario probably went...
* I didn't have FreeTDS or DBD::Sybase. I installed 0.50 and 0.23. There
was a bug in 0.50 which meant nulls were added.
* I upgraded FreeTDS and somehow DBD::Sybase wasn't re-installed (although
I remember re-installing it <shrug>). The bug was fixed in FreeTDS but
now DBD::Sybase was passing the wrong value and so I still got null
terminated strings.
* I have now re-installed DBD::Sybase and don't get any nulls.
Lord give me strength.
Best wishes, James
--
James Ponder; www.squish.net
-
Re: trailing null on strings,
James Ponder, 10/19/2000
- <Possible follow-up(s)>
- Re: trailing null on strings, Bob Kline, 10/19/2000
- Re: trailing null on strings, Brian Bruns, 10/19/2000
- Re: trailing null on strings, James Ponder, 10/19/2000
- Re: trailing null on strings, Michael Peppler, 10/19/2000
Archive powered by MHonArc 2.6.24.