From ab1487672afb5180bd17c9d26b35196bd06f6cda Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 Jul 2011 09:45:36 +0200 Subject: Add value_traits specializations for std::vector This allows using it as a buffer for BLOB mapping. --- pgsql/types/test.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pgsql/types/test.hxx') 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 #include +#include #include // std::auto_ptr #include // std::memcmp #include // std::size_t @@ -139,7 +140,7 @@ struct object std::string text_; #pragma db type ("BYTEA") - buffer bytea_; + std::vector bytea_; #pragma db type ("VARBIT(1024)") varbit varbit_; -- cgit v1.1