diff --git a/dbms/src/IO/WriteHelpers.cpp b/dbms/src/IO/WriteHelpers.cpp index e1642d7a477..01573dfff05 100644 --- a/dbms/src/IO/WriteHelpers.cpp +++ b/dbms/src/IO/WriteHelpers.cpp @@ -37,6 +37,10 @@ void writeEscapedString(const String & s, WriteBuffer & buf) writeChar('\\', buf); writeChar('\'', buf); break; + case '"': + writeChar('\\', buf); + writeChar('"', buf); + break; case '\\': writeChar('\\', buf); writeChar('\\', buf);