Commit 0ce4fe5b authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[4277] Fixed bug in PsqlBindArray:toText

parent 3c221983
......@@ -88,10 +88,10 @@ std::string PsqlBindArray::toText() const {
stream << "empty" << std::endl;
} else {
stream << "0x";
for (int i = 0; i < lengths_[i]; ++i) {
for (int x = 0; x < lengths_[i]; ++x) {
stream << std::setfill('0') << std::setw(2)
<< std::setbase(16)
<< static_cast<unsigned int>(data[i]);
<< static_cast<unsigned int>(data[x]);
}
stream << std::endl;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment