aboutsummaryrefslogtreecommitdiff
path: root/mysql/types/traits.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'mysql/types/traits.hxx')
-rw-r--r--mysql/types/traits.hxx39
1 files changed, 1 insertions, 38 deletions
diff --git a/mysql/types/traits.hxx b/mysql/types/traits.hxx
index 2698afc..09d50a1 100644
--- a/mysql/types/traits.hxx
+++ b/mysql/types/traits.hxx
@@ -10,7 +10,7 @@
#include <odb/mysql/traits.hxx>
-#include "test.hxx" // date_time, buffer, string_ptr
+#include "test.hxx" // date_time, string_ptr
namespace odb
{
@@ -57,43 +57,6 @@ namespace odb
};
template <>
- class value_traits<buffer, id_blob>
- {
- public:
- typedef buffer value_type;
- typedef buffer query_type;
- typedef details::buffer image_type;
-
- static void
- set_value (buffer& v,
- const details::buffer& b,
- std::size_t n,
- bool is_null)
- {
- if (!is_null)
- v.assign (b.data (), n);
- else
- v.assign (0, 0);
- }
-
- static void
- set_image (details::buffer& b,
- std::size_t& n,
- bool& is_null,
- const buffer& v)
- {
- is_null = false;
- n = v.size ();
-
- if (n > b.capacity ())
- b.capacity (n);
-
- if (n != 0)
- std::memcpy (b.data (), v.data (), n);
- }
- };
-
- template <>
class value_traits<bitfield, id_bit>
{
public: