aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-01-25 12:44:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-01-25 12:44:16 +0200
commite514e34ac0e8483d112b316ae3fc97b8e06a3fe0 (patch)
tree2f2f63441721cffc9f1549882be49449a2d4cc15
parentc0f11dd9391fc84ca2554af122d672cb9af3531f (diff)
By default map std::array<char, N> to string instead of binary
-rw-r--r--odb/mysql/traits.hxx14
1 files 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 <std::size_t N>
+ struct default_type_traits<std::array<char, N> >
+ {
+ static const database_type_id db_type_id = id_string;
+ };
+#endif
+
template <>
struct default_type_traits<char>
{
@@ -968,12 +976,6 @@ namespace odb
#ifdef ODB_CXX11
template <std::size_t N>
- struct default_type_traits<std::array<char, N> >
- {
- static const database_type_id db_type_id = id_blob;
- };
-
- template <std::size_t N>
struct default_type_traits<std::array<unsigned char, N> >
{
static const database_type_id db_type_id = id_blob;