From 099898208c09542410884413d8d619f178c1ff3b 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/mssql/traits.hxx | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'odb') diff --git a/odb/mssql/traits.hxx b/odb/mssql/traits.hxx index 207a30a..5c3867c 100644 --- a/odb/mssql/traits.hxx +++ b/odb/mssql/traits.hxx @@ -2064,6 +2064,16 @@ namespace odb static const database_type_id db_type_id = id_string; }; +#ifdef ODB_CXX11 + template + struct default_type_traits > + { + // Ditto. + // + static const database_type_id db_type_id = id_string; + }; +#endif + template <> struct default_type_traits { @@ -2099,6 +2109,16 @@ namespace odb static const database_type_id db_type_id = id_nstring; }; +#ifdef ODB_CXX11 + template + struct default_type_traits > + { + // Ditto. + // + static const database_type_id db_type_id = id_nstring; + }; +#endif + template <> struct default_type_traits { @@ -2127,12 +2147,6 @@ namespace odb #ifdef ODB_CXX11 template - struct default_type_traits > - { - static const database_type_id db_type_id = id_long_binary; - }; - - template struct default_type_traits > { static const database_type_id db_type_id = id_long_binary; -- cgit v1.1