From e607b4dfb03f17e073725013df12a11547fc6a54 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 13 Jul 2011 10:03:09 +0200 Subject: Add support for DATE, TIME and TIMESTAMP SQL types --- odb/pgsql/traits.hxx | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'odb/pgsql/traits.hxx') diff --git a/odb/pgsql/traits.hxx b/odb/pgsql/traits.hxx index 1fbcc26..8308688 100644 --- a/odb/pgsql/traits.hxx +++ b/odb/pgsql/traits.hxx @@ -78,6 +78,15 @@ namespace odb struct image_traits {typedef double image_type;}; template <> + struct image_traits {typedef int image_type;}; + + template <> + struct image_traits {typedef long long image_type;}; + + template <> + struct image_traits {typedef long long image_type;}; + + template <> struct image_traits {typedef details::buffer image_type;}; template <> @@ -94,19 +103,6 @@ namespace odb template <> struct image_traits {typedef unsigned char* image_type;}; - // @@ Date/time binary support in PostgreSQL is sketchy and in some - // cases depends on server compile time constants. Using strings - // to avoid this. - // - template <> - struct image_traits {typedef details::buffer image_type;}; - - template <> - struct image_traits {typedef details::buffer image_type;}; - - template <> - struct image_traits {typedef details::buffer image_type;}; - // // value_traits // -- cgit v1.1