Skip to Content.
Sympa Menu

freetds - RE: [freetds] Status 0.62rc4

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO Frediano" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Status 0.62rc4
  • Date: Wed, 7 Jan 2004 17:34:55 +0100

>
> I'm still working on some unit test failures on Tru64.
>
> I checked in a couple of fixes for
> src/tds/unittests/convert.c last night, and I'm still working
> on another two problems in the same test -- apparently there
> are some problems with conversions of SYBINT8 to SYBNUMERIC
> and SYBDECIMAL on Tru64...
>

Mm... convert.c use "sprintf(tmp_str, "%lld", buf);" to convert from
TDS_INT8 to string. Do your system support this sprintf format ??

Try this program

#include <stdio.h>
#include <stdlib.h>

/* just to disable some possible optimizations.. */
volatile long long my_int = 12345678 * 100000000ll + 12345678;

int
main()
{
char buf[80];

sprintf(buf, "%lld", my_int);
printf("%s\n", buf);
return 0;
}

> Additionally, there seems to be a problem with
> src/ctlib/unittests/t0009.c assuming that the default date
> format is being used, and failing when it is not, but I
> haven't had a chance to look at that one yet in any detail.
>

It should force date format... but I don't know how to do this using
CTLib...

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page