From 2128d342ad4518604e941d03ad57efaad77842ad Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 Jan 2013 12:03:16 +0200 Subject: Remove bogus traits --- odb/pgsql/traits.cxx | 4 ++-- odb/pgsql/traits.hxx | 38 +++----------------------------------- 2 files changed, 5 insertions(+), 37 deletions(-) (limited to 'odb') diff --git a/odb/pgsql/traits.cxx b/odb/pgsql/traits.cxx index 550f7c7..ec220ff 100644 --- a/odb/pgsql/traits.cxx +++ b/odb/pgsql/traits.cxx @@ -13,10 +13,10 @@ namespace odb using details::buffer; // - // string_value_traits + // default_value_traits // - void string_value_traits:: + void default_value_traits:: set_image (buffer& b, size_t& n, bool& is_null, diff --git a/odb/pgsql/traits.hxx b/odb/pgsql/traits.hxx index f5c6f8d..0267527 100644 --- a/odb/pgsql/traits.hxx +++ b/odb/pgsql/traits.hxx @@ -41,7 +41,7 @@ namespace odb id_integer, id_bigint, - id_numeric, + id_numeric, // Internal PostgreSQL binary representation. id_real, id_double, @@ -377,9 +377,9 @@ namespace odb // std::string specialization. // - class LIBODB_PGSQL_EXPORT string_value_traits + template <> + struct LIBODB_PGSQL_EXPORT default_value_traits { - public: typedef std::string value_type; typedef std::string query_type; typedef details::buffer image_type; @@ -403,18 +403,6 @@ namespace odb const std::string&); }; - template <> - struct LIBODB_PGSQL_EXPORT default_value_traits: - string_value_traits - { - }; - - template <> - struct LIBODB_PGSQL_EXPORT default_value_traits: - string_value_traits - { - }; - // const char* specialization // // Specialization for const char* which only supports initialization @@ -435,13 +423,6 @@ namespace odb }; template <> - struct LIBODB_PGSQL_EXPORT default_value_traits: - c_string_value_traits - { - typedef const char* query_type; - }; - - template <> struct LIBODB_PGSQL_EXPORT default_value_traits: c_string_value_traits { @@ -449,19 +430,6 @@ namespace odb }; template - struct default_value_traits: c_string_value_traits - { - typedef char query_type[N]; - }; - - template - struct default_value_traits: - c_string_value_traits - { - typedef const char query_type[N]; - }; - - template struct default_value_traits: c_string_value_traits { typedef char query_type[N]; -- cgit v1.1