From da5cf192e951c8d276d45a9960503a3d5d02e440 Mon Sep 17 00:00:00 2001 From: fjkfwz Date: Fri, 26 Oct 2018 19:30:09 +0800 Subject: [PATCH] Fix blob field display --- include/sqlpp11/data_types/blob/result_field.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/sqlpp11/data_types/blob/result_field.h b/include/sqlpp11/data_types/blob/result_field.h index 0b610c5a..b6fadccb 100644 --- a/include/sqlpp11/data_types/blob/result_field.h +++ b/include/sqlpp11/data_types/blob/result_field.h @@ -33,6 +33,7 @@ #include #include #include +#include namespace sqlpp { @@ -76,7 +77,9 @@ namespace sqlpp } else { - return os << e.value(); + std::vector value = e.value(); + std::string value_str(value.begin(), value.end()); + return os << value_str; } } } // namespace sqlpp