[freetds] Freebcp 2GB file limit

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Thu Oct 28 10:15:03 EDT 2004


> 
> 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



More information about the FreeTDS mailing list