From b63a422647fcf9ae291ceb0ad32746d1a239129f Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 24 Mar 2011 10:05:14 +0200 Subject: Implement boost date-time traits as default_value_traits specializations --- odb/boost/date-time/mysql/gregorian-traits.hxx | 2 +- odb/boost/date-time/mysql/posix-time-traits.hxx | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'odb/boost/date-time') diff --git a/odb/boost/date-time/mysql/gregorian-traits.hxx b/odb/boost/date-time/mysql/gregorian-traits.hxx index d907aef..d30dbb8 100644 --- a/odb/boost/date-time/mysql/gregorian-traits.hxx +++ b/odb/boost/date-time/mysql/gregorian-traits.hxx @@ -20,7 +20,7 @@ namespace odb namespace mysql { template <> - class value_traits< ::boost::gregorian::date, MYSQL_TIME, id_date> + class default_value_traits< ::boost::gregorian::date, MYSQL_TIME, id_date> { public: typedef ::boost::gregorian::date date; diff --git a/odb/boost/date-time/mysql/posix-time-traits.hxx b/odb/boost/date-time/mysql/posix-time-traits.hxx index 35f1413..81e7454 100644 --- a/odb/boost/date-time/mysql/posix-time-traits.hxx +++ b/odb/boost/date-time/mysql/posix-time-traits.hxx @@ -21,7 +21,8 @@ namespace odb namespace mysql { template <> - class value_traits< ::boost::posix_time::ptime, MYSQL_TIME, id_datetime> + class default_value_traits< + ::boost::posix_time::ptime, MYSQL_TIME, id_datetime> { public: typedef ::boost::posix_time::ptime ptime; @@ -69,7 +70,8 @@ namespace odb }; template <> - class value_traits< ::boost::posix_time::ptime, MYSQL_TIME, id_timestamp> + class default_value_traits< + ::boost::posix_time::ptime, MYSQL_TIME, id_timestamp> { public: typedef ::boost::posix_time::ptime ptime; @@ -122,9 +124,8 @@ namespace odb }; template <> - class value_traits< ::boost::posix_time::time_duration, - MYSQL_TIME, - id_time> + class default_value_traits< + ::boost::posix_time::time_duration, MYSQL_TIME, id_time> { public: typedef ::boost::posix_time::time_duration time_duration; -- cgit v1.1