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
commit3a9feb01e8cda69c41af126a7266ae7a6e545499 (patch)
tree7d67f54950196efc2206b666fd852b1b8a6639e6
parenta849d159fd03d3c954df3fc60826680f5d1afd65 (diff)
By default map std::array<char, N> to string instead of binary
-rw-r--r--odb/sqlite/traits.hxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/odb/sqlite/traits.hxx b/odb/sqlite/traits.hxx
index 0cdf171..53d2db0 100644
--- a/odb/sqlite/traits.hxx
+++ b/odb/sqlite/traits.hxx
@@ -929,6 +929,14 @@ namespace odb
static const database_type_id db_type_id = id_text;
};
+#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_text;
+ };
+#endif
+
template <>
struct default_type_traits<char>
{
@@ -957,12 +965,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;