diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-27 14:55:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-27 14:55:47 +0200 |
commit | 5e98aad4b067ece803b75cae7f538565da8661c8 (patch) | |
tree | 92bdf22c225e22622dd26c5903da4859155c418e /boost/oracle/date-time/test.hxx | |
parent | 40e8a72ebd1a8bb475b3bb25f23d8c205dadeb06 (diff) |
Add support for mapping posix_time::ptime and QDateTime to DATE Oracle type
Diffstat (limited to 'boost/oracle/date-time/test.hxx')
-rw-r--r-- | boost/oracle/date-time/test.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/boost/oracle/date-time/test.hxx b/boost/oracle/date-time/test.hxx index 9699c5d..e7afe8f 100644 --- a/boost/oracle/date-time/test.hxx +++ b/boost/oracle/date-time/test.hxx @@ -26,6 +26,7 @@ struct object id == x.id && dates == x.dates && times == x.times && + times_d == x.times_d && durations == x.durations; } @@ -34,6 +35,8 @@ struct object std::vector<boost::gregorian::date> dates; std::vector<boost::posix_time::ptime> times; + #pragma db value_type("DATE") + std::vector<boost::posix_time::ptime> times_d; std::vector<boost::posix_time::time_duration> durations; }; |