Skip to Content.
Sympa Menu

freetds - Re: [PATCH] msg_number to TDS_UINT

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Steve Langasek <vorlon AT netexpress.net>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: [PATCH] msg_number to TDS_UINT
  • Date: Sat, 26 Jan 2002 12:54:23 -0600

On Sat, Jan 26, 2002 at 01:49:49PM -0500, Bob Kline wrote:
> On Sat, 26 Jan 2002, Steve Langasek wrote:

> > My concern is that this is being done specifically *because* of the
> > line in dblib/dbutil.c:

> > if( tds->msg_info->msg_number > 0 )

> > If you change msg_number to be a uint, then this comparison will
> > always be false.

> Zero is a legitimate value for an unsigned integer.

Ah, of course. Is this the intended meaning of the comparison, then, to
check if msg_number != 0?

Steve Langasek
postmodern programmer

Attachment: pgpZBtdEGeaSe.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page