diff options
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; |