-current vs 0.53
Frediano Ziglio
freddyz77 at tin.it
Fri May 2 19:13:14 EDT 2003
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')
More information about the FreeTDS
mailing list