From ee84e02861046b5ec6aed7e274106dd0a25e9fe2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 5 Jun 2017 16:44:37 +0100 Subject: Fix memory leak in unit test --- libpqpp/unittests/testpq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpqpp') 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_REQUIRE_EQUAL(boost::posix_time::ptime(boost::gregorian::date(2017, 1, 8)), r.value<0>()); } -- cgit v1.2.3