diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-16 14:20:14 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-16 14:20:14 +0000 |
commit | 1ca0cd42419656cf4a4b9e37c5f3cfb51ccafbb5 (patch) | |
tree | d25e0f98914be9875e9ebe00308b8141847c7910 /libpqpp/unittests/testpq.cpp | |
parent | More clang tidy fixes (diff) | |
download | libdbpp-postgresql-1ca0cd42419656cf4a4b9e37c5f3cfb51ccafbb5.tar.bz2 libdbpp-postgresql-1ca0cd42419656cf4a4b9e37c5f3cfb51ccafbb5.tar.xz libdbpp-postgresql-1ca0cd42419656cf4a4b9e37c5f3cfb51ccafbb5.zip |
Modernize clang tidy fixes
Diffstat (limited to 'libpqpp/unittests/testpq.cpp')
-rw-r--r-- | libpqpp/unittests/testpq.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp index 0a13c1e..5b584b7 100644 --- a/libpqpp/unittests/testpq.cpp +++ b/libpqpp/unittests/testpq.cpp @@ -136,7 +136,7 @@ BOOST_AUTO_TEST_CASE( bindAndSelectOther ) assertColumnValueHelper(*select, 1, 123.45); assertColumnValueHelper(*select, 2, std::string_view("some text with a ; in it and a ' too")); assertColumnValueHelper(*select, 3, true); - assertColumnValueHelper(*select, 4, boost::posix_time::ptime_from_tm({ 3, 6, 23, 27, 3, 115, 0, 0, 0, 0, 0})); + assertColumnValueHelper(*select, 4, boost::posix_time::ptime_from_tm({ 3, 6, 23, 27, 3, 115, 0, 0, 0, 0, nullptr})); assertColumnValueHelper(*select, 5, boost::posix_time::time_duration(38, 13, 12)); rows += 1; } @@ -163,7 +163,7 @@ BOOST_AUTO_TEST_CASE( bulkload ) auto count = ro->select("SELECT COUNT(*) FROM bulktest"); // Test empty ro->beginBulkUpload("bulktest", ""); - ro->endBulkUpload(NULL); + ro->endBulkUpload(nullptr); assertScalarValueHelper(*count, 0); // Test sample file ro->beginBulkUpload("bulktest", ""); @@ -173,7 +173,7 @@ BOOST_AUTO_TEST_CASE( bulkload ) for (std::streamsize r; (r = in.readsome(buf, sizeof(buf))) > 0; ) { ro->bulkUploadData(buf, r); } - ro->endBulkUpload(NULL); + ro->endBulkUpload(nullptr); assertScalarValueHelper(*count, 800); } |