Skip to Content.
Sympa Menu

freetds - Re: ints don't work, trailing null on strings

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT umcc.ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: ints don't work, trailing null on strings
  • Date: Wed, 18 Oct 2000 17:28:40 -0400 (EDT)



t0009 has been failing for me for a while, so I wouldn't put much weight on
that. I'm not sure whether the test is flawed or freetds is flawed. I
seem to remember that this an area where Sybase vs. MS Dblib differed and
this test fails under Sybase behaviour. I need to run on the real dblib to
verify.

Anyway, DBD::FreeTDS does not rely on the FreeTDS C libraries, which is
perhaps why one works and the other one does not.

I will try to take a look at this tonight to see if a recent change may have
done something.

Brian

On Wed, 18 Oct 2000, Bob Kline wrote:

> On Wed, 18 Oct 2000, James Ponder wrote:
>
> > Expected |abcdef|, found |abcdef|
> > dblib failed for t0009.c
> >
> > Which is a strange error, to say the least :-)
>
> Well, sure, but if you look at the source code for the test, it's pretty
> easy to see what that problem is:
>
> dbcmd(dbproc,
> "create table dblib0009 (i int not null, s varchar(10) not null)");
>
> ... followed by:
>
> if (0 != strcmp("abcdef ", teststr))
> {
> fprintf(stderr, "Expected |%s|, found |%s|\n", "abcdef", teststr);
> fprintf(stderr, "dblib failed for %s\n", __FILE__);
> exit(1);
> }
>
> ... which is making the comparison as if the column were CHAR instead of
> VARCHAR.
>
> Do you have source code for a repro case?
>
> --
> Bob Kline
> mailto:bkline AT rksystems.com
> http://www.rksystems.com
>
>
>
> ---
> You are currently subscribed to freetds as: [camber AT ais.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>





Archive powered by MHonArc 2.6.24.

Top of Page