summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdbpp/unittests/testUtils.cpp6
1 files changed, 6 insertions, 0 deletions
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");
+}
+