diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-11-08 02:00:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-11-08 02:00:57 +0000 |
commit | 999f67d7ce106e2ff9ff68f106494a3434a44a94 (patch) | |
tree | 1e69f842900a171c0e2c9667ba47d70cce7b4eea | |
parent | Expose exceptions (diff) | |
download | libdbpp-999f67d7ce106e2ff9ff68f106494a3434a44a94.tar.bz2 libdbpp-999f67d7ce106e2ff9ff68f106494a3434a44a94.tar.xz libdbpp-999f67d7ce106e2ff9ff68f106494a3434a44a94.zip |
Test execute
-rw-r--r-- | libdbpp/unittests/testUtils.cpp | 6 |
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"); +} + |