From e514e34ac0e8483d112b316ae3fc97b8e06a3fe0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 25 Jan 2013 12:44:16 +0200 Subject: By default map std::array to string instead of binary --- odb/mysql/traits.hxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/odb/mysql/traits.hxx b/odb/mysql/traits.hxx index 1c2eca3..a995cf9 100644 --- a/odb/mysql/traits.hxx +++ b/odb/mysql/traits.hxx @@ -940,6 +940,14 @@ namespace odb static const database_type_id db_type_id = id_string; }; +#ifdef ODB_CXX11 + template + struct default_type_traits > + { + static const database_type_id db_type_id = id_string; + }; +#endif + template <> struct default_type_traits { @@ -968,12 +976,6 @@ namespace odb #ifdef ODB_CXX11 template - struct default_type_traits > - { - static const database_type_id db_type_id = id_blob; - }; - - template struct default_type_traits > { static const database_type_id db_type_id = id_blob; -- cgit v1.1