From 219d6ffefb5f71fc2a262f8b5c93f2f88e9aecd9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Sep 2011 11:03:40 +0200 Subject: Add const char[n] value_traits specialization in addition to char[n] --- odb/pgsql/traits.hxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'odb') 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 + struct default_value_traits: + c_string_value_traits + { + }; + + template struct default_value_traits: c_string_value_traits { }; + template + struct default_value_traits: + c_string_value_traits + { + }; + // std::vector (buffer) specialization. // template <> @@ -590,6 +602,12 @@ namespace odb { static const database_type_id db_type_id = id_string; }; + + template + struct default_type_traits + { + static const database_type_id db_type_id = id_string; + }; } } -- cgit v1.1