freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: Error/Cancel problem: What is tds_get_byte() doing?
- From: Brian Bruns <camber AT ais.org>
- To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
- Subject: Re: Error/Cancel problem: What is tds_get_byte() doing?
- Date: Sun, 8 Sep 2002 09:55:27 -0400 (EDT)
Fixed in CVS. Thanks.
On Sat, 7 Sep 2002 lbayuk AT mindspring.com wrote:
> I'm trying to work on this problem with PHP and cancel after error causing
> loss of synch between server and client, and I come to this new code in
> read.c/tds_get_byte() which I'm having trouble understanding:
>
> while (tds->s && (rc = tds_read_packet(tds) == 0)) ;
>
> Note that "rc = f() == 0" is the same as "rc = (f() == 0)", which makes
> no sense since the next line tests if rc==-1.
>
> Maybe it was supposed to be this:
>
> while (tds->s && (rc = tds_read_packet(tds)) == 0) ;
>
> This still does not fix the broken PHP error handling, but at least it
> may be one more step in that direction.
>
> ---
> You are currently subscribed to freetds as: [camber AT ais.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>
-
Error/Cancel problem: What is tds_get_byte() doing?,
lbayuk, 09/07/2002
- <Possible follow-up(s)>
- Re: Error/Cancel problem: What is tds_get_byte() doing?, Brian Bruns, 09/08/2002
Archive powered by MHonArc 2.6.24.