Skip to Content.
Sympa Menu

freetds - [freetds] freebcp -c and newlines

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Ed Avis <eda AT waniasset.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] freebcp -c and newlines
  • Date: Wed, 5 Aug 2015 14:09:50 +0000 (UTC)

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 <eda AT waniasset.com>





Archive powered by MHonArc 2.6.24.

Top of Page