Skip to Content.
Sympa Menu

freetds - Re: Sorry, one more patch for bigint

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: Sorry, one more patch for bigint
  • Date: 09 Oct 2002 10:46:27 +0200


Il mer, 2002-10-09 alle 08:43, Jason Borden ha scritto:
> diff -r -u freetds/src/tds/convert.c freetds-jb/src/tds/convert.c
> --- freetds/src/tds/convert.c Wed Oct 9 00:35:27 2002
> +++ freetds-jb/src/tds/convert.c Wed Oct 9 00:27:44 2002
> @@ -3152,7 +3152,7 @@
> enum { blank = ' ' };
> const char *p;
> int sign;
> -unsigned int num; /* we use unsigned here for best overflow check */
> +unsigned long long num; /* we use unsigned here for best overflow check
> */
>
> p = buf;
>

string_to_int do not support bigint for now...
If you want to support bigint you must change also res parameter
declaration, check for overflow, test result from this call...
Current code work correctly.

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page