freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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
-
Sorry, one more patch for bigint,
Jason Borden, 10/09/2002
- <Possible follow-up(s)>
- Re: Sorry, one more patch for bigint, Frediano Ziglio, 10/09/2002
Archive powered by MHonArc 2.6.24.