diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-22 11:03:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-22 11:03:40 +0200 |
commit | 219d6ffefb5f71fc2a262f8b5c93f2f88e9aecd9 (patch) | |
tree | d21e946391ded24524f4f4294b48f5ba53a5296d | |
parent | ec29cd0d06600f96cf6f395619f93b02a2a7e11c (diff) |
Add const char[n] value_traits specialization in addition to char[n]1.6.0.a2
-rw-r--r-- | odb/pgsql/traits.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/odb/pgsql/traits.hxx b/odb/pgsql/traits.hxx index 5fe65b6..58602bf 100644 --- a/odb/pgsql/traits.hxx +++ b/odb/pgsql/traits.hxx @@ -444,10 +444,22 @@ namespace odb }; template <std::size_t n> + struct default_value_traits<const char[n], id_numeric>: + c_string_value_traits + { + }; + + template <std::size_t n> struct default_value_traits<char[n], id_string>: c_string_value_traits { }; + template <std::size_t n> + struct default_value_traits<const char[n], id_string>: + c_string_value_traits + { + }; + // std::vector<char> (buffer) specialization. // template <> @@ -590,6 +602,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; + }; } } |