[freetds] dblib bcp, t0017 broken

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Fri Jan 27 09:26:22 EST 2006


> 
> Hi Freddy,
> 
> I don't understand code in bcp.c lines 1240 onwards.
> This is yours and james' code...
> 
> what is this byte its reading ?
> I don't understand what the program is expecting to find here...
> 
> code used to read (long time ago) ...
> 
> } else { /* unterminated field */
>     if (collen) 
>        if (fread(coldata, collen, 1, hostfile) != 1) {
>           _bcp_err_handler(dbproc, SYBEBCRE);
>           return (FAIL);
>        }
>     }
> }
> 
> Bill
> 

Yes, you are right, I think patch came from Christos

http://lists.ibiblio.org/pipermail/freetds/2004q1/thread.html

http://lists.ibiblio.org/pipermail/freetds/2004q1/015049.html
http://lists.ibiblio.org/pipermail/freetds/2004q1/015068.html
http://lists.ibiblio.org/pipermail/freetds/2004q1/015077.html
http://lists.ibiblio.org/pipermail/freetds/2004q1/015569.html

>From ChangeLog

Thu Mar 11 22:31:44 EST 2004    JK Lowden <jklowden at schemamania.org>
        * doc/userguide.sgml added OS X build procedure by Dmitri
Fedortchenko
        * src/dblib/bcp.c applied patch from ML from Christos

Now... what this patch should fix? I'm trying to get a reply from
http://lists.ibiblio.org/pipermail/freetds/2003q4/thread.html (Cf. "bcp
is really busted" thread).

Well... I think I'll go for a coffe' :)

freddy77


More information about the FreeTDS mailing list