diff options
Diffstat (limited to 'odb/pgsql/traits.hxx')
-rw-r--r-- | odb/pgsql/traits.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/odb/pgsql/traits.hxx b/odb/pgsql/traits.hxx index e0aff15..5fe65b6 100644 --- a/odb/pgsql/traits.hxx +++ b/odb/pgsql/traits.hxx @@ -438,6 +438,16 @@ namespace odb { }; + template <std::size_t n> + struct default_value_traits<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 + { + }; + // std::vector<char> (buffer) specialization. // template <> @@ -574,6 +584,12 @@ namespace odb { static const database_type_id db_type_id = id_string; }; + + template <std::size_t n> + struct default_type_traits<char[n]> + { + static const database_type_id db_type_id = id_string; + }; } } |