diff options
-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; + }; } } |