# HG changeset patch # User František Kučera # Date 1650664028 -7200 # Node ID 08c392fc66e4f862e14508fce3dfde19d653685c # Parent 4bd3bc41b57982be29a3d53edb712f5ddd2cb15b allow serialization of strings containing null byte 0x00 do not trim at first 0x00 and fulfill declared value length diff -r 4bd3bc41b579 -r 08c392fc66e4 src/types/StringDataTypeWriter.h --- a/src/types/StringDataTypeWriter.h Fri Apr 22 23:43:07 2022 +0200 +++ b/src/types/StringDataTypeWriter.h Fri Apr 22 23:47:08 2022 +0200 @@ -48,7 +48,7 @@ void writeValue(std::ostream &output, const string_t &value) override { std::string s = convertor.to_bytes(value); integerType.writeValue(output, s.length()); - output << s.c_str(); + output << s; } wstring toValue(const string_t &stringValue) override {