frioux / DBIx-Class-DeploymentHandler

https://metacpan.org/pod/DBIx::Class::DeploymentHandler
20 stars 25 forks source link

.sql files created by this library running on Windows are rejected by MySQL on Linux due to newlines #52

Closed wchristian closed 5 years ago

wchristian commented 7 years ago

DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator writes files without binmode, which means they contain platform-specific newlines. \r\n in the case of windows. This means if MySQL on linux tries to process these, all it sees is broken .sql files.

46 has a fix but no tests yet.