0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Fix blob field display

This commit is contained in:
fjkfwz 2018-10-26 19:30:09 +08:00 committed by Roland Bock
parent 9d430b2e20
commit da5cf192e9

View File

@ -33,6 +33,7 @@
#include <sqlpp11/data_types/blob/data_type.h> #include <sqlpp11/data_types/blob/data_type.h>
#include <sqlpp11/field_spec.h> #include <sqlpp11/field_spec.h>
#include <ostream> #include <ostream>
#include <string>
namespace sqlpp namespace sqlpp
{ {
@ -76,7 +77,9 @@ namespace sqlpp
} }
else else
{ {
return os << e.value(); std::vector<uint8_t> value = e.value();
std::string value_str(value.begin(), value.end());
return os << value_str;
} }
} }
} // namespace sqlpp } // namespace sqlpp