freebcp -c and newlines

Ed Avis <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
freebcp -c writes rows in a simple text format with a newline character at
the end of each row.  But if one of the columns itself contains a literal
newline the output will be corrupt.  It would be better for freebcp -c to
check for newlines when writing data, and exit with an error status if it
finds one.  Probably it should also check for the separator character.  If
you want to write arbitrary data to a file you should use the binary bcp
output format.

If you agree that this would be a useful safety check to prevent corrupt
output, I could submit a patch.

-- 
Ed Avis <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.