Skip to Content.
Sympa Menu

freetds - Re: [freetds] tests... work in progress and alpha

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] tests... work in progress and alpha
  • Date: Thu, 24 Aug 2006 14:55:16 +0200

>
> On Aug 24, 11:45am, Frediano.Ziglio AT vodafone.com ("ZIGLIO,
> Frediano, VF-IT") wrote:
> -- Subject: Re: [freetds] tests... work in progress and alpha
>
> | Some updates
> |
> | Sparc now works, there is only a problem with a bcp native test. The
> | problem is that test input we use is big endian (t0017.in)
> while sparc
> | is little endian. Does bcp file should be endian dependent??
>
> Sparc is big endian, Is the test supposed to be big endian or little
> endian?
>

Sorry to make so confusion. t0017 test use an external file (t0017.in)
to bcp-in. It use "native" format so it use binary lenghts. Let's watch
at the file

$ hexdump -C t0017.in
00000000 04 11 22 33 44 45 00 00 00 70 72 6f 76 61 20 64
|.."3DE...prova d|
00000010 69 20 74 65 73 74 6f 20 71 75 65 73 74 6f 20 74 |i testo
questo t|
00000020 65 73 74 6f 20 64 6f 76 72 65 62 62 65 20 61 6e |esto
dovrebbe an|
00000030 64 61 72 65 20 61 20 66 69 6e 69 72 65 20 69 6e |dare a
finire in|
00000040 20 75 6e 20 63 61 6d 70 6f 20 74 65 78 74 | un campo
text|
0000004e

that's:

04 lenght
11 22 33 44 a number (0x44332211 == 1144201745 on Intel)
45 00 00 00 length (0x45)
70 72 ... a string...

> | Alpha now works, there were only a Linux problem where MSG_MORE is
> | defined but send do not support it.
>
> Alpha is little endian too.
>
> christos

ok.

freddy77





Archive powered by MHonArc 2.6.24.

Top of Page