Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Allow to escape nil in FileDestination #107

Open
thbar opened this issue Aug 16, 2012 · 0 comments
Open

Allow to escape nil in FileDestination #107

thbar opened this issue Aug 16, 2012 · 0 comments

Comments

@thbar
Copy link
Member

thbar commented Aug 16, 2012

This is a follow-up to this code and this comment.

MySQL bulk load will apparently convert \N into null values if passed.

It would be nice to add a configurable support for that.

Acceptance

  • this code should have tests
  • should be on a separate feature branch
  • unlike the original code, no transforming to UTF-8 (this must be done elsewhere, people are dumping non UTF-8 data as well!)
  • if a parameter named escape_nil_as is passed, use its value to replace nils by this value
  • if the parameter is not passed, no escaping should occur.

I did a bit of research and \N seems to work as well for PostgresSQL.

What do you think guys? (especially @sgrgic and @josephbridgwaterrowe)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant