aboutsummaryrefslogtreecommitdiff
path: root/sqlite/types/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-28 09:45:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-28 09:45:36 +0200
commitab1487672afb5180bd17c9d26b35196bd06f6cda (patch)
tree51cc25e1b88cb0abc325a822f57845a98a22cb8a /sqlite/types/test.hxx
parenta461f6d8bc6c314249057ad48fa8dd1cea1d8b40 (diff)
Add value_traits specializations for std::vector<char>
This allows using it as a buffer for BLOB mapping.
Diffstat (limited to 'sqlite/types/test.hxx')
-rw-r--r--sqlite/types/test.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sqlite/types/test.hxx b/sqlite/types/test.hxx
index 22cde8e..79b0a33 100644
--- a/sqlite/types/test.hxx
+++ b/sqlite/types/test.hxx
@@ -8,12 +8,11 @@
#include <set>
#include <string>
+#include <vector>
#include <memory> // std::auto_ptr
#include <odb/core.hxx>
-#include <common/buffer.hxx>
-
typedef std::auto_ptr<std::string> string_ptr;
#pragma db object
@@ -44,7 +43,7 @@ struct object
std::string text_;
#pragma db type ("BLOB")
- buffer blob_;
+ std::vector<char> blob_;
// Test NULL value.
//