Skip to Content.
Sympa Menu

freetds - RE: [freetds] Freebcp 2GB file limit

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] Freebcp 2GB file limit
  • Date: Thu, 28 Oct 2004 16:15:03 +0200

>
> On Thu, 2004-10-28 at 15:35, Thompson, Bill D (London) wrote:
> > Tom,
> >
> > That's not a freebcp message , as far as I know.
> > There is a file size limit on your operating system, probably.
> > I have run into the same problem with Sybase "bcp" in Solaris.
>
> Actually it's a bit of both. I think you need to use special calls or
> flags to handle >2GB files.
>
> Checking the open(2) man page on linux I see the O_LARGEFILE flag, for
> example.
>
> Michael
>

Better, from fseeko(3)

On many architectures both off_t and long are 32-bit types, but
compi-
lation with
#define _FILE_OFFSET_BITS 64
will turn off_t into a 64-bit type.

I don't see nothing wrong using _FILE_OFFSET_BITS by default in FreeTDS.

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page