diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-25 12:44:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-25 12:44:16 +0200 |
commit | e480c666a9b5b31c0d18ff506d24967cb6e2fec0 (patch) | |
tree | 5d3724b935d25f5b8e996a7b83e2f9fbb0242c61 | |
parent | 877b93d4c98e21bababaca563ccb07ce26c56706 (diff) |
By default map std::array<char, N> to string instead of binary
-rw-r--r-- | odb/oracle/traits.hxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/odb/oracle/traits.hxx b/odb/oracle/traits.hxx index 13bb1dc..662e5b7 100644 --- a/odb/oracle/traits.hxx +++ b/odb/oracle/traits.hxx @@ -1440,6 +1440,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> { @@ -1469,12 +1477,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_raw; - }; - - template <std::size_t N> struct default_type_traits<std::array<unsigned char, N> > { static const database_type_id db_type_id = id_raw; |