From 999f67d7ce106e2ff9ff68f106494a3434a44a94 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Nov 2015 02:00:57 +0000 Subject: Test execute --- libdbpp/unittests/testUtils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libdbpp/unittests/testUtils.cpp b/libdbpp/unittests/testUtils.cpp index 79506cf..578609a 100644 --- a/libdbpp/unittests/testUtils.cpp +++ b/libdbpp/unittests/testUtils.cpp @@ -35,3 +35,9 @@ BOOST_AUTO_TEST_CASE( forEachRow ) }); } +BOOST_AUTO_TEST_CASE( execute ) +{ + auto db = DB::ConnectionPtr(DB::MockDatabase::openConnectionTo("pqmock")); + db->execute("UPDATE forEachRow SET a = 2"); +} + -- cgit v1.2.3