[freetds] [PATCH] support for no terminator in bcp format file
Xavier
xavier+freetds at diwi.org
Sat Dec 6 16:31:01 EST 2008
bcp_colfmt requires a null pointer when specifying no terminator, and
currently barfs when zero length is supplied with non-null pointer (as
is
the case when specifying an empty string for terminator in the format
file).
The attached patch fixes the parsing of the bcp format file to pass a
null
pointer when an empty string was specified as terminator.
NB: a nice side effect of this is the possibility to use a named pipe as
input to freebcp
When specifying a prefix length and no terminator for all columns in the
format file, freebcp will not perform any fseek on the input stream,
allowing the use of named pipes.
- Xavier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-terminator.patch
Type: text/x-diff
Size: 679 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20081206/d6b118ef/attachment.bin
More information about the FreeTDS
mailing list