diff options
Diffstat (limited to 'odb/mysql/traits.hxx')
-rw-r--r-- | odb/mysql/traits.hxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/odb/mysql/traits.hxx b/odb/mysql/traits.hxx index d10b414..630eaeb 100644 --- a/odb/mysql/traits.hxx +++ b/odb/mysql/traits.hxx @@ -454,20 +454,42 @@ namespace odb }; template <std::size_t n> + struct default_value_traits<const char[n], id_string>: + c_string_value_traits + { + }; + + template <std::size_t n> struct default_value_traits<char[n], id_decimal>: c_string_value_traits { }; template <std::size_t n> + struct default_value_traits<const char[n], id_decimal>: + c_string_value_traits + { + }; + + template <std::size_t n> struct default_value_traits<char[n], id_enum>: c_string_value_traits { }; template <std::size_t n> + struct default_value_traits<const char[n], id_enum>: c_string_value_traits + { + }; + + template <std::size_t n> struct default_value_traits<char[n], id_set>: c_string_value_traits { }; + template <std::size_t n> + struct default_value_traits<const char[n], id_set>: c_string_value_traits + { + }; + // std::vector<char> (buffer) specialization. // template <> @@ -610,6 +632,12 @@ namespace odb { static const database_type_id db_type_id = id_string; }; + + template <std::size_t n> + struct default_type_traits<const char[n]> + { + static const database_type_id db_type_id = id_string; + }; } } |