Skip to Content.
Sympa Menu

freetds - RE: -current vs 0.53

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: RE: -current vs 0.53
  • Date: 06 Sep 2002 14:00:45 +0200


Il ven, 2002-09-06 alle 13:52, Brian Bruns ha scritto:
> Wanna pass along some details on the bug?
>
> Brian
>

Something like this

int res() { return -1; }

void check()
{
int i;
if ( (i=res()) < sizeof(i))
return;
printf("Mmm... this is a bad compiler!\n");
}

Calling check() print "Mmm... this is a bad compiler!", but -1 <
sizeof(i) should be true !!! My knowledge of C tell that conversion
unsigned int -> int is implicit, so compiler should convert sizeof(i) to
int and compare. It seem that first convert i to unsigned int and then
do compare...

freddy77


> On 6 Sep 2002, Frediano Ziglio wrote:
>
> > Il ven, 2002-09-06 alle 12:36, Emile Heitor ha scritto:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > On 6 Sep 2002, Frediano Ziglio wrote:
> > >
> > > > Just set TDSDUMP environment to empty and port freetds.log (I suggest
> > > > to
> > > > remove first all /tmp/freetds.* file)
> > >
> > > done. Here's why SQLConnect() fails ( from freetds.log ) :
> > >
> > > Login failed for user 'dbuser'
> > >
> > > however, I'm sure this is ok ( works on 0.53 ). Any changes on the 7.0
> > > protocol or configuration that can affect the login process ?
> > >
> > I do test on FreeBSD and problem was not TDS7 related.
> > Good thing: is not related to socket problem
> > Bad thing: it seem a compiler bug...
> > However I written a workaround for the core (just 5 character...) and
> > added code to fix no-blocking socket problem. All in CVS
> >
> > freddy77
> >
> >
> >
> > ---
> > You are currently subscribed to freetds as: [camber AT ais.org]
> > To unsubscribe, forward this message to $subst('Email.Unsub')
> >
> >
>
>
> ---
> You are currently subscribed to freetds as: [freddyz77 AT tin.it]
> To unsubscribe, forward this message to $subst('Email.Unsub')






Archive powered by MHonArc 2.6.24.

Top of Page