allow serialization of strings containing null byte 0x00
do not trim at first 0x00 and fulfill declared value length
--- 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 {