From 26d4b0a333e327d7ef42c67db4c06918bafb1d84 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 21 Sep 2010 19:55:14 +0200 Subject: Redesign value_traits --- common/query/traits.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/query') diff --git a/common/query/traits.hxx b/common/query/traits.hxx index 125929c..43b1bcc 100644 --- a/common/query/traits.hxx +++ b/common/query/traits.hxx @@ -17,20 +17,20 @@ namespace odb namespace mysql { template <> - class value_traits > + class value_traits, details::buffer> { public: - typedef std::auto_ptr type; - typedef std::string value_type; - static const image_id_type image_id = id_string; + typedef std::auto_ptr value_type; + typedef std::string query_type; + typedef details::buffer image_type; static void set_value (std::auto_ptr& v, - const char* s, + const details::buffer& b, std::size_t n, bool is_null) { - v.reset (is_null ? 0 : new std::string (s, n)); + v.reset (is_null ? 0 : new std::string (b.data (), n)); } static void -- cgit v1.1