diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-16 16:03:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-16 16:03:25 +0200 |
commit | db71e956ea808569ce1e5bbcabb7e65dc4604ac8 (patch) | |
tree | 36361958211b842d21339566946d5a1680dde8d1 /odb/pgsql/traits.hxx | |
parent | dedd9690c67ff5577072162e6a3a5c8a7c843e17 (diff) |
Support for views; integrated part
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; + }; } } |