diff options
author | randomdan <randomdan@localhost> | 2014-03-03 20:57:27 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2014-03-03 20:57:27 +0000 |
commit | 6ae914ceb99aaeba3c69a4b9efe839f1c6e9932b (patch) | |
tree | b2bbfd5bf670ec04c1ac2d8ffebfe2a0181d8e63 /project2/sql/sqlTest.cpp | |
parent | Don't create the app engine instance before forking (diff) | |
download | project2-6ae914ceb99aaeba3c69a4b9efe839f1c6e9932b.tar.bz2 project2-6ae914ceb99aaeba3c69a4b9efe839f1c6e9932b.tar.xz project2-6ae914ceb99aaeba3c69a4b9efe839f1c6e9932b.zip |
Adds native support for time_duration as a variable type
Pass/retrieve boost::posix_time ptime and time_duration into/out of the db tier
Diffstat (limited to 'project2/sql/sqlTest.cpp')
-rw-r--r-- | project2/sql/sqlTest.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/project2/sql/sqlTest.cpp b/project2/sql/sqlTest.cpp index 45178ef..30b43b8 100644 --- a/project2/sql/sqlTest.cpp +++ b/project2/sql/sqlTest.cpp @@ -54,8 +54,11 @@ class HandleDoCompare : public DB::HandleField { void floatingpoint(double val) { doTest(val); } - void timestamp(const struct tm & val) { - doTest(boost::posix_time::ptime_from_tm(val)); + void interval(const boost::posix_time::time_duration & val) { + doTest(val); + } + void timestamp(const boost::posix_time::ptime & val) { + doTest(val); } bool operator()() const { return retVal; |