diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-28 09:45:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-28 09:45:36 +0200 |
commit | ab1487672afb5180bd17c9d26b35196bd06f6cda (patch) | |
tree | 51cc25e1b88cb0abc325a822f57845a98a22cb8a /pgsql/types/test.hxx | |
parent | a461f6d8bc6c314249057ad48fa8dd1cea1d8b40 (diff) |
Add value_traits specializations for std::vector<char>
This allows using it as a buffer for BLOB mapping.
Diffstat (limited to 'pgsql/types/test.hxx')
-rw-r--r-- | pgsql/types/test.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pgsql/types/test.hxx b/pgsql/types/test.hxx index 48c30ee..500887a 100644 --- a/pgsql/types/test.hxx +++ b/pgsql/types/test.hxx @@ -8,6 +8,7 @@ #include <set> #include <string> +#include <vector> #include <memory> // std::auto_ptr #include <cstring> // std::memcmp #include <cstddef> // std::size_t @@ -139,7 +140,7 @@ struct object std::string text_; #pragma db type ("BYTEA") - buffer bytea_; + std::vector<char> bytea_; #pragma db type ("VARBIT(1024)") varbit varbit_; |