summaryrefslogtreecommitdiff
path: root/libpqpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-06-05 16:44:37 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-06-05 16:44:37 +0100
commitee84e02861046b5ec6aed7e274106dd0a25e9fe2 (patch)
tree08e2bc99351e1c41b0336dfd9f975cd89b2f44db /libpqpp
parentStandalone split (diff)
downloadlibdbpp-postgresql-ee84e02861046b5ec6aed7e274106dd0a25e9fe2.tar.bz2
libdbpp-postgresql-ee84e02861046b5ec6aed7e274106dd0a25e9fe2.tar.xz
libdbpp-postgresql-ee84e02861046b5ec6aed7e274106dd0a25e9fe2.zip
Fix memory leak in unit test
Diffstat (limited to 'libpqpp')
-rw-r--r--libpqpp/unittests/testpq.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp
index 76d896f..87992ca 100644
--- a/libpqpp/unittests/testpq.cpp
+++ b/libpqpp/unittests/testpq.cpp
@@ -329,7 +329,7 @@ BOOST_AUTO_TEST_CASE( dateoid )
{
auto ro = DB::MockDatabase::openConnectionTo("PQmock");
PQ::CommandOptions co(0, 1, false);
- auto sel = ro->newSelectCommand("SELECT '2017-01-08'::date", &co);
+ auto sel = ro->select("SELECT '2017-01-08'::date", &co);
for (const auto & r : sel->as<boost::posix_time::ptime>()) {
BOOST_REQUIRE_EQUAL(boost::posix_time::ptime(boost::gregorian::date(2017, 1, 8)), r.value<0>());
}