diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-18 20:38:15 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-18 20:38:15 +0000 |
commit | 626dc14a876028d45b6e820f21cb1ae662e11021 (patch) | |
tree | f6988a53b1fd9a22917df8805f9f25974ffc61d5 | |
parent | Enable performance checks and fix accordingly (diff) | |
download | libdbpp-626dc14a876028d45b6e820f21cb1ae662e11021.tar.bz2 libdbpp-626dc14a876028d45b6e820f21cb1ae662e11021.tar.xz libdbpp-626dc14a876028d45b6e820f21cb1ae662e11021.zip |
Restore and extend types covered by generic extrator test
-rw-r--r-- | libdbpp/unittests/testUtils.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libdbpp/unittests/testUtils.cpp b/libdbpp/unittests/testUtils.cpp index 483f58b..0e90a94 100644 --- a/libdbpp/unittests/testUtils.cpp +++ b/libdbpp/unittests/testUtils.cpp @@ -395,13 +395,15 @@ BOOST_AUTO_TEST_CASE( testExtractTypes ) { auto db = DB::MockDatabase::openConnectionTo("pqmock"); auto sel = db->select("SELECT 1 FROM forEachRow LIMIT 0"); - // testExtractT<int8_t>(sel); - // testExtractT<int16_t>(sel); - // testExtractT<int32_t>(sel); + testExtractT<int8_t>(sel); + testExtractT<int16_t>(sel); + testExtractT<int32_t>(sel); testExtractT<int64_t>(sel); testExtractT<bool>(sel); testExtractT<std::string>(sel); - // testExtractT<float>(sel); + testExtractT<std::string_view>(sel); + testExtractT<Glib::ustring>(sel); + testExtractT<float>(sel); testExtractT<double>(sel); testExtractT<boost::posix_time::ptime>(sel); testExtractT<boost::posix_time::time_duration>(sel); |