SnakeDumper
SnakeDumper copied to clipboard
dumpOutput->writeln without OUTPUT_RAW escapes/removes certain characters (like '<')
Problem
String in INSERT Query: '>>Elit Tortor Ridiculus Vehicula! (Lorem Ipsum)<<'
dumpOutput->writeln outputs: '>>Elit Tortor Ridiculus Vehicula! (Lorem Ipsum)\'
Fix
Use $this->dumpOutput->writeln($query, Output::OUTPUT_RAW);
wherever applicable to prevent this faulty behaviour.
@digilist that's a really simple fix … any chance to get this into master or do you need a pull request?
Sure, I can take a look. Changing this to raw output does make sense, but I cannot reproduce your described error. Can you provide a fully working example or a unit test?