summaryrefslogtreecommitdiff
path: root/project2/sql/sqlTest.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2014-03-03 20:57:27 +0000
committerrandomdan <randomdan@localhost>2014-03-03 20:57:27 +0000
commit6ae914ceb99aaeba3c69a4b9efe839f1c6e9932b (patch)
treeb2bbfd5bf670ec04c1ac2d8ffebfe2a0181d8e63 /project2/sql/sqlTest.cpp
parentDon't create the app engine instance before forking (diff)
downloadproject2-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.cpp7
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;